How to get a default channel to send messages in? #7367
Answered
by
SebbyLaw
TheWebsiter
asked this question in
Q&A
-
I want the bot to find automatically a channel to send messages in. I tried getting a channel by ID but then the bot won't work for different severs. |
Beta Was this translation helpful? Give feedback.
Answered by
SebbyLaw
Aug 12, 2021
Replies: 1 comment
-
There is no such thing as a "default channel" anymore. Your bot may join a server that doesn't have any text channels, or can't message in any. Something that several bots do right now is iterate over each channel until one is found where the bot has permission to send messages. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheWebsiter
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is no such thing as a "default channel" anymore. Your bot may join a server that doesn't have any text channels, or can't message in any.
Something that several bots do right now is iterate over each channel until one is found where the bot has permission to send messages.