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
WackyPythonWithaLemon1912
WackyPythonWithaLemon1912

So i tried those commands and also kind of combined it with LD1's response, and now i think it's the channel id that's the problem.

@client.event async def on_member_join(welcomeChannel, member): welcomeChannel = client.get_channel(490042165926428672) await welcomeChannel.send("<@" + str({member.name}) + ">")

Do you know how to make it message the specific channel?
Coder100

2 years ago