fix say command perms

This commit is contained in:
Ryan Cao 2022-08-29 12:15:53 +08:00
parent d16bec1336
commit d1377b538d
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
2 changed files with 4 additions and 2 deletions

View file

@ -112,6 +112,7 @@ client.on('interactionCreate', async (interaction) => {
);
} else if (commandName === 'say') {
if (!interaction.channel) return;
await interaction.deferReply();
await interaction.channel.send(interaction.options.getString('content')!);
await interaction.editReply('I said what you said!');