Need to defer followup on refresh because it takes a while.

This commit is contained in:
2024-05-15 17:27:35 -04:00
parent 7333100b1d
commit dfd4ef9347
+2 -3
View File
@@ -29,7 +29,6 @@ class RefreshCog(commands.Cog, name="Refresh Commands"):
Args:
interaction (nextcord.Interaction): Interaction with the command.
"""
await interaction.response.defer()
await update_clan_messages(interaction.guild)
await interaction.response.send_message(
"Messages have been refreshed.", ephemeral=True
)
await interaction.followup.send("Messages have been refreshed.", ephemeral=True)