Skip to content

Commit

Permalink
Fix role mentions in /say
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaUrsa committed Mar 29, 2024
1 parent 07095d8 commit 1aa153a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/discord/commands/guild/d.say.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ export const dSay: SlashCommand = {
channel = channel as TextChannel;

await channel.sendTyping(); // This method automatically stops typing after 10 seconds, or when a message is sent.
setTimeout(async () => (channel as TextChannel).send(say), 3000);
setTimeout(async () => (channel as TextChannel).send({
content: say,
allowedMentions: { parse: ['users'] },
}), 3000);

await interaction.editReply({ content: `I said '${say}' in ${channel.name}` }); // eslint-disable-line max-len

Expand Down

0 comments on commit 1aa153a

Please sign in to comment.