Fix reminds in DMs

This commit is contained in:
Ave Ozkal 2019-01-02 02:15:53 +03:00
parent ef97d64002
commit 03291469be
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -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)