Need to defer followup on refresh because it takes a while.
This commit is contained in:
@@ -29,7 +29,6 @@ class RefreshCog(commands.Cog, name="Refresh Commands"):
|
|||||||
Args:
|
Args:
|
||||||
interaction (nextcord.Interaction): Interaction with the command.
|
interaction (nextcord.Interaction): Interaction with the command.
|
||||||
"""
|
"""
|
||||||
|
await interaction.response.defer()
|
||||||
await update_clan_messages(interaction.guild)
|
await update_clan_messages(interaction.guild)
|
||||||
await interaction.response.send_message(
|
await interaction.followup.send("Messages have been refreshed.", ephemeral=True)
|
||||||
"Messages have been refreshed.", ephemeral=True
|
|
||||||
)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user