From 4d91914085b2d444f44991e1a291bedec6b9a3d9 Mon Sep 17 00:00:00 2001 From: Conatum Date: Mon, 16 Oct 2023 22:41:50 +0300 Subject: [PATCH] fix: Restrict more commands to guilds. --- src/modules/reminders/cog.py | 2 ++ src/modules/tasklist/cog.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/modules/reminders/cog.py b/src/modules/reminders/cog.py index 3382179b..3bdd8cc9 100644 --- a/src/modules/reminders/cog.py +++ b/src/modules/reminders/cog.py @@ -332,6 +332,7 @@ class Reminders(LionCog): "View and set your reminders." ) ) + @appcmds.guild_only async def cmd_reminders(self, ctx: LionContext): """ Display the reminder widget for this user. @@ -353,6 +354,7 @@ class Reminders(LionCog): name=_p('cmd:remindme', "remindme"), description=_p('cmd:remindme|desc', "View and set task reminders."), ) + @appcmds.guild_only async def remindme_group(self, ctx: LionContext): # Base command group for scheduling reminders. pass diff --git a/src/modules/tasklist/cog.py b/src/modules/tasklist/cog.py index 7aa8bf5f..e3c2f7cb 100644 --- a/src/modules/tasklist/cog.py +++ b/src/modules/tasklist/cog.py @@ -261,6 +261,7 @@ class TasklistCog(LionCog): "Open your tasklist." ) ) + @appcmds.guild_only async def tasklist_cmd(self, ctx: LionContext): if not ctx.interaction: return @@ -270,6 +271,7 @@ class TasklistCog(LionCog): name=_p('group:tasks', "tasks"), description=_p('group:tasks|desc', "Base command group for tasklist commands.") ) + @appcmds.guild_only async def tasklist_group(self, ctx: LionContext): raise NotImplementedError