From 84c4aec1eece76f388ab56e9b065032a7ed178ef Mon Sep 17 00:00:00 2001 From: Assayyaad Date: Wed, 4 Sep 2024 19:09:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=D8=A7=D9=84=D8=B1=D8=AF=20=D8=B9=D9=84?= =?UTF-8?q?=D9=89=20=D8=A7=D9=84=D8=A3=D9=88=D8=A7=D9=85=D8=B1=20=D8=A8?= =?UTF-8?q?=D9=86=D8=B5=20=D9=81=D9=82=D8=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit يمكن الآن الرد على الأوامر بنص فقط دون وضعه داخل مربع مضمّن وذلك عن طريق إرجاع نص من الدالة --- src/events/interactionCreate.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/events/interactionCreate.js b/src/events/interactionCreate.js index 03ca451..af69dfc 100644 --- a/src/events/interactionCreate.js +++ b/src/events/interactionCreate.js @@ -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) {