Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
SayInReply fix incorrect custom modal id fields
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Feb 8, 2024
1 parent e373741 commit 332fde9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/contextmenu/message/SayInReply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ export const ContextMenuAction: MeteoriumMessageContextMenuAction = {
const ShowExecutorName =
GuildSetting.EnforceSayInExecutor && !interaction.member.permissions.has("Administrator", true)
? true
: modalSubmitInteraction.fields.getTextInputValue("showexecutorname").toLowerCase() == "no"
: modalSubmitInteraction.fields.getTextInputValue("ShowExecutorName").toLowerCase() == "no"
? false
: true;

const Message = ShowExecutorName
? `${modalSubmitInteraction.fields.getTextInputValue("message")}\n\n(Sayin command executed by ${
? `${modalSubmitInteraction.fields.getTextInputValue("Message")}\n\n(Sayin command executed by ${
interaction.user.tag
} (${interaction.user.id}))`
: modalSubmitInteraction.fields.getTextInputValue("message");
: modalSubmitInteraction.fields.getTextInputValue("Message");

await interaction.targetMessage.channel.send({
content: Message,
Expand Down

0 comments on commit 332fde9

Please sign in to comment.