diff --git a/cogs/leaderboard.py b/cogs/leaderboard.py index 7369d1c..6c1d9a8 100644 --- a/cogs/leaderboard.py +++ b/cogs/leaderboard.py @@ -19,6 +19,7 @@ async def on_ready(self): @nextcord.slash_command(name="leaderboard", description="Frong leaderboard") async def leaderboard(self, interaction: nextcord.Interaction): + await interaction.response.defer() csv_dict = {} data = "" total = 0 @@ -46,7 +47,7 @@ async def leaderboard(self, interaction: nextcord.Interaction): embed = nextcord.Embed(title=":crown: **LEADERBOARD**", color=0xd6b509) embed.add_field(name=":speech_balloon: __FRONGS BY USER__", value=data,inline=False) embed.add_field(name=":loudspeaker: __TOTAL FRONGS__", value=total,inline=False) - await interaction.response.send_message(embed=embed, ephemeral=False) + await interaction.followup.send(embed=embed, ephemeral=False) def setup(bot): - bot.add_cog(Leaderboard(bot)) \ No newline at end of file + bot.add_cog(Leaderboard(bot))