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

@slavstic
See if this fixes it

@client.event async def on_member_join(welcomeChannel, member): welcomeChannel = client.get_channel(490042165926428672) await welcomeChannel.send("<@" + str(member.id) + ">")
2 years ago