How to ping users

I’ve made the Discord bot, it’s sitting in a server, it does what I want but I don’t know how to make it ping users. I’m using Python language in Replit.

Essentially what I want is a bot to take place an the announcer on an announcement channel, I’d like to ping a user or channel but I have no idea what I must write in the code to get it to ping instead of putting a @ or # before the user or channel name.

If possible I would like to bot to read text out of a hidden channel and post it in the announcement channel, it would be nice if this could be made a possibility.

Also note that I am an amateur when it comes to code and only just watched a few YouTube clips and read a couple of articles.

I also have no clue which sub forum this request should be posted to which is why I’m placing it here.

the best place to look into would be the API documentation

I suppose you are using

you can find its documentation here:

1 Like

I’ve figured out how to ping users, channels and roles as a bonus


This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.