diff --git a/src/index.ts b/src/index.ts index 8e140dc..3b0f6ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,21 +27,18 @@ veluna.discord.once(Events.ClientReady, () => { ); }); -// eslint-disable-next-line @typescript-eslint/no-misused-promises -- Top-level await. -veluna.discord.on(Events.InteractionCreate, async(interaction) => { +veluna.discord.on(Events.InteractionCreate, (interaction) => { if (!interaction.inCachedGuild()) { return; } if (interaction.isButton()) { - await handleButton(veluna, interaction); - return; + void handleButton(veluna, interaction); } if (interaction.isModalSubmit()) { - await handleModalSubmit(veluna, interaction); - return; + void handleModalSubmit(veluna, interaction); } if (interaction.isChatInputCommand()) { - await handleChatCommand(veluna, interaction); + void handleChatCommand(veluna, interaction); } }); diff --git a/src/modules/handleChatCommand.ts b/src/modules/handleChatCommand.ts index d77e308..f68887a 100644 --- a/src/modules/handleChatCommand.ts +++ b/src/modules/handleChatCommand.ts @@ -104,4 +104,8 @@ export const handleChatCommand = async( serverId: guild.id, }, }); + + await interaction.editReply({ + content: `This server's ${commandName} channel has been set to <#${channel.id}>.`, + }); };