Answer the question
In order to leave comments, you need to log in
How to make a discord bot write to a specific user?
it pops up when you type !test python I've been learning for more than a week, maybe I'm missing something and this is a very stupid question
Answer the question
In order to leave comments, you need to log in
And also set
the resolution
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix='!', intents=intents)
@client.command()
async def ping(ctx):
user = client.get_user(id)
await user.send('message')
client.run('token')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question