From 2bf08a32be2e47897cb743fcf47727f986262ebe Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 16 Aug 2020 16:44:54 +0100 Subject: [PATCH] Deleting message first and then sending the dm to the user --- cogs/owner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/owner.py b/cogs/owner.py index b7895b80..69cf8850 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -13,10 +13,10 @@ class Owner(Cog): async def dm(self, ctx, member: Member, *, text): """DM users""" - # Send the message typed the mentioned user - await member.send(text) # Delete the message sent instantly await ctx.message.delete() + # Send the message typed the mentioned user + await member.send(text) @command(name="leave", hidden=True) @is_owner()