fix(stats): Limit stat commands to guilds.

This commit is contained in:
2023-10-01 14:26:14 +03:00
parent 8a2c85113e
commit 5568339835

View File

@@ -46,6 +46,7 @@ class StatsCog(LionCog):
"Display your personal profile and summary statistics." "Display your personal profile and summary statistics."
) )
) )
@appcmds.guild_only
async def me_cmd(self, ctx: LionContext): async def me_cmd(self, ctx: LionContext):
await ctx.interaction.response.defer(thinking=True) await ctx.interaction.response.defer(thinking=True)
ui = ProfileUI(self.bot, ctx.author, ctx.guild) ui = ProfileUI(self.bot, ctx.author, ctx.guild)
@@ -59,6 +60,7 @@ class StatsCog(LionCog):
"Weekly and monthly statistics for your recent activity." "Weekly and monthly statistics for your recent activity."
) )
) )
@appcmds.guild_only
async def stats_cmd(self, ctx: LionContext): async def stats_cmd(self, ctx: LionContext):
""" """
Statistics command. Statistics command.