Home>

I want to send a DM to the person who ran the command

Code
@ client.command (aliases = ['a'])
async def a (ctx):
 dm = ctx.author.dm_create ()
 await dm.send ("I want to send")
Error

AttributeError: 'Member' object has no attribute 'dm_create'
The above exception was the direct cause of the following exception: