How do I get a voice channel by its id? #6391
-
This can be easily done with a text channel, but how can it be done with a voice channel? |
Beta Was this translation helpful? Give feedback.
Answered by
bandwiches
Feb 7, 2021
Replies: 1 comment
-
The same way you do it for a text channel. Guild.get_channel() So maybe in its simplest form, something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Shandeika
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The same way you do it for a text channel.
Guild.get_channel()
returns list [abc.GuildChannel]
Guild Channel implements one of...
abc.TextChannel
,abc.VoiceChannel
,abc.CategoryChannel
.So maybe in its simplest form, something like this: