Ask coding questions

← Back to all posts
how do I send a message to all of the servers my discord bot is on?
Pb103938 (0)

I am using discord.py to run my bot and would like to broadcast a message to every server my bot is on.

Comments
hotnewtop
[deleted]

Oh you can't other users must enter the correct room and then you can chat with then!

Pb103938 (0)

@LeBookie no like the bot chooses a text channel and sends a message even though no one has entered a command

Pb103938 (0)

(example) encourager:
an update was just released!

even though no one typed something like #update

[deleted]

@Pb103938 Yes im correct

Pb103938 (0)

@LeBookie others said you could (on someone elses post) but I don't know the entire code.