I want a Python discord bot to send a message to a discord user like "Sammie#2596" <- My discord id
How do I send a private message to such a user?
I want a Python discord bot to send a message to a discord user like "Sammie#2596" <- My discord id
How do I send a private message to such a user?
A simple command to send a direct message to a member could be:
@client.command() / @bot.command() / @commands.command()
async def dm(ctx, user: discord.Member, *, message):
await user.send(f"{message}")
*
is used in order to allow more than one worddiscord.Member
can either be the ID/Tag or you mention the userTo get a list of all users check out other posts on StackOverflow: 1 or 2