From 03291469be14b4964073b782e6e522c76930090a Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Wed, 2 Jan 2019 02:15:53 +0300 Subject: [PATCH] Fix reminds in DMs --- cogs/remind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/remind.py b/cogs/remind.py index a0a6c04..a1ae7e3 100644 --- a/cogs/remind.py +++ b/cogs/remind.py @@ -33,7 +33,8 @@ class Remind: @commands.command(aliases=["remindme"]) async def remind(self, ctx, when: str, *, text: str = "something"): """Reminds you about something.""" - await ctx.message.delete() + if ctx.guild: + await ctx.message.delete() current_timestamp = time.time() expiry_timestamp = self.bot.parse_time(when)