Skip to content

Commit

Permalink
feat: الرد على الأوامر بنص فقط
Browse files Browse the repository at this point in the history
يمكن الآن الرد على الأوامر بنص فقط دون وضعه داخل مربع مضمّن وذلك عن طريق إرجاع نص من الدالة
  • Loading branch information
Assayyaad committed Sep 4, 2024
1 parent 01554eb commit 84c4aec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/events/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export async function interactionCreate(interaction) {
return
}

if (interaction.replied) return

if (typeof reply === 'string') reply = { embeds: [asEmbed(reply, brand)] }
else {
if (typeof reply === 'object') {
// @ts-expect-error
if (reply.embeds) reply.embeds = applyStyle(reply.embeds, brand)
else if (reply.content) {
Expand Down

0 comments on commit 84c4aec

Please sign in to comment.