reminders made in dms will break the entire cog, so guild only(for now)

This commit is contained in:
brandons209 2020-08-22 01:26:22 -04:00
parent dbff1e5148
commit 3f1a02a734

View file

@ -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="<what to be reminded of> <args>")
@commands.guild_only()
async def reminder(self, ctx: commands.GuildContext, *, reminder: Schedule):
"""
Schedule a reminder DM from the bot