fix(stats): Limit stat commands to guilds.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user