Correct sub command name. Add response.
build_develop / build (push) Failing after 19s

This commit is contained in:
2024-05-15 14:17:27 -04:00
parent 5726875c59
commit f822ed2e2d
+4 -1
View File
@@ -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
)