mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-20 12:22:37 +12:00
reminders made in dms will break the entire cog, so guild only(for now)
This commit is contained in:
parent
dbff1e5148
commit
3f1a02a734
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue