From 3f1a02a734c9c0c001df96fe5a957b87627bc728 Mon Sep 17 00:00:00 2001 From: brandons209 Date: Sat, 22 Aug 2020 01:26:22 -0400 Subject: [PATCH] reminders made in dms will break the entire cog, so guild only(for now) --- scheduler/scheduler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scheduler/scheduler.py b/scheduler/scheduler.py index b68173f..3c86655 100644 --- a/scheduler/scheduler.py +++ b/scheduler/scheduler.py @@ -100,7 +100,7 @@ class Scheduler(commands.Cog): # explain: mypy assumes this is always true, but other CCs using this API may not be using mypy. if not (isinstance(author, discord.Member) and isinstance(channel, discord.TextChannel)): # type: ignore - raise TypeError( + raise Tya fupeError( "Must provide guild specific discord.py models for both author and channel" ) @@ -546,6 +546,7 @@ class Scheduler(commands.Cog): @commands.check(lambda ctx: not ctx.assume_yes) @commands.command(name="remindme", usage=" ") + @commands.guild_only() async def reminder(self, ctx: commands.GuildContext, *, reminder: Schedule): """ Schedule a reminder DM from the bot