fix: Restrict more commands to guilds.
This commit is contained in:
@@ -332,6 +332,7 @@ class Reminders(LionCog):
|
|||||||
"View and set your reminders."
|
"View and set your reminders."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@appcmds.guild_only
|
||||||
async def cmd_reminders(self, ctx: LionContext):
|
async def cmd_reminders(self, ctx: LionContext):
|
||||||
"""
|
"""
|
||||||
Display the reminder widget for this user.
|
Display the reminder widget for this user.
|
||||||
@@ -353,6 +354,7 @@ class Reminders(LionCog):
|
|||||||
name=_p('cmd:remindme', "remindme"),
|
name=_p('cmd:remindme', "remindme"),
|
||||||
description=_p('cmd:remindme|desc', "View and set task reminders."),
|
description=_p('cmd:remindme|desc', "View and set task reminders."),
|
||||||
)
|
)
|
||||||
|
@appcmds.guild_only
|
||||||
async def remindme_group(self, ctx: LionContext):
|
async def remindme_group(self, ctx: LionContext):
|
||||||
# Base command group for scheduling reminders.
|
# Base command group for scheduling reminders.
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -261,6 +261,7 @@ class TasklistCog(LionCog):
|
|||||||
"Open your tasklist."
|
"Open your tasklist."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@appcmds.guild_only
|
||||||
async def tasklist_cmd(self, ctx: LionContext):
|
async def tasklist_cmd(self, ctx: LionContext):
|
||||||
if not ctx.interaction:
|
if not ctx.interaction:
|
||||||
return
|
return
|
||||||
@@ -270,6 +271,7 @@ class TasklistCog(LionCog):
|
|||||||
name=_p('group:tasks', "tasks"),
|
name=_p('group:tasks', "tasks"),
|
||||||
description=_p('group:tasks|desc', "Base command group for tasklist commands.")
|
description=_p('group:tasks|desc', "Base command group for tasklist commands.")
|
||||||
)
|
)
|
||||||
|
@appcmds.guild_only
|
||||||
async def tasklist_group(self, ctx: LionContext):
|
async def tasklist_group(self, ctx: LionContext):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user