I've done some research and found a (maybe) old method for direct messaging someone.
async def dm(ctx, recipient=None, message=None):
if message == None or recipient == None:
await ctx.channel.send("***Error: Incorrect Usage***\nUsage: `/test [recipient] [message]`")
else:
pass
if message is not None:
if recipient is not None:
message = str(message)
await client.send_message(recipient, message)
What this code is supposed to do is to get the recipient of the dm and the message, and direct message the person (the if message == None or recipient == None
is to check for missing arguments, and sending an error message.)
What is the correct/recent way to direct message someone?