From f822ed2e2d285f3f176544d9128537c63b59ec30 Mon Sep 17 00:00:00 2001 From: imcompiling Date: Wed, 15 May 2024 14:17:27 -0400 Subject: [PATCH] Correct sub command name. Add response. --- cogs/commands/refresh.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cogs/commands/refresh.py b/cogs/commands/refresh.py index dddfb7e..72ac037 100644 --- a/cogs/commands/refresh.py +++ b/cogs/commands/refresh.py @@ -22,7 +22,7 @@ class RefreshCog(commands.Cog, name="Refresh Commands"): """ @refresh.subcommand(description="Force refresh all of the bot managed messages.") - async def event(self, interaction: nextcord.Interaction): + async def messages(self, interaction: nextcord.Interaction): """ Calls update_clan_messages() to update all messages. @@ -30,3 +30,6 @@ class RefreshCog(commands.Cog, name="Refresh Commands"): interaction (nextcord.Interaction): Interaction with the command. """ await update_clan_messages(interaction.guild) + await interaction.response.send_message( + "Messages have been refreshed.", ephemeral=True + )