Deleting message first and then sending the dm to the user

pull/8/head
sgoudham 4 years ago
parent dab51d22d6
commit 2bf08a32be

@ -13,10 +13,10 @@ class Owner(Cog):
async def dm(self, ctx, member: Member, *, text): async def dm(self, ctx, member: Member, *, text):
"""DM users""" """DM users"""
# Send the message typed the mentioned user
await member.send(text)
# Delete the message sent instantly # Delete the message sent instantly
await ctx.message.delete() await ctx.message.delete()
# Send the message typed the mentioned user
await member.send(text)
@command(name="leave", hidden=True) @command(name="leave", hidden=True)
@is_owner() @is_owner()

Loading…
Cancel
Save