Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
4

Discord.py How to ping users?

WackyPythonWithaLemon1912
WackyPythonWithaLemon1912

How do I let my discord bot ping users? I'm using it for a welcome style message. I still need to figure out how to add channel ID but the pinging problem has stopped me before

@client
.event
async def on_member_join(member):
await member.send(f"{member.name} has joined")

This is what I used

2 years ago
You are viewing a single comment. View All
1
CircuitSacul
CircuitSacul

@Coder100
It's always <object>.mention, .name and .id will send just their name or their id.

2 years ago