diff --git a/src/commands/Moderation/SayIn.ts b/src/commands/Moderation/SayIn.ts index ec88dbd..481b9b1 100644 --- a/src/commands/Moderation/SayIn.ts +++ b/src/commands/Moderation/SayIn.ts @@ -52,9 +52,9 @@ export const Command: MeteoriumCommand = { const ShowExecutorName = GuildSetting.EnforceSayInExecutor && !interaction.member.permissions.has("Administrator", true) ? true - : interaction.options.getBoolean("showexecutorname", false) - ? true - : false; + : interaction.options.getBoolean("showexecutorname", false) == false + ? false + : true; const Message = ShowExecutorName ? `${interaction.options.getString("message", true)}\n\n(Sayin command executed by ${ interaction.user.tag diff --git a/src/contextmenu/message/SayInReply.ts b/src/contextmenu/message/SayInReply.ts index 9b319f8..70e0759 100644 --- a/src/contextmenu/message/SayInReply.ts +++ b/src/contextmenu/message/SayInReply.ts @@ -39,8 +39,7 @@ export const ContextMenuAction: MeteoriumMessageContextMenuAction = { await interaction.showModal(modal); const modalSubmitInteraction = await interaction.awaitModalSubmit({ - filter: (interaction) => - interaction.customId == "SayInReplyModal" && interaction.isMessageContextMenuCommand(), + filter: (interaction) => interaction.customId == "SayInReplyModal", time: 60000, }); @@ -55,9 +54,9 @@ export const ContextMenuAction: MeteoriumMessageContextMenuAction = { const ShowExecutorName = GuildSetting.EnforceSayInExecutor && !interaction.member.permissions.has("Administrator", true) ? true - : modalSubmitInteraction.fields.getTextInputValue("showexecutorname").toLowerCase() == "yes" - ? true - : false; + : modalSubmitInteraction.fields.getTextInputValue("showexecutorname").toLowerCase() == "no" + ? false + : true; const Message = ShowExecutorName ? `${modalSubmitInteraction.fields.getTextInputValue("message")}\n\n(Sayin command executed by ${