K
K
Kerbalximus2020-11-04 19:02:08
Bots
Kerbalximus, 2020-11-04 19:02:08

How to send a message to a specific discord.py server?

I have a bot that is on multiple servers. Can I send a message to one of the servers in a specific channel. And if so, how.

It is desirable that it works on discord.py

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2020-11-05
@Kerbalximus

bot.get_guild(ID)
Guild.get_channel(ID)
or
bot.get_channel(ID)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question