Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a python discord bot to join the current voice channel i am in #585

Closed
Sneakyninja0129 opened this issue Jun 3, 2017 · 1 comment
Closed
Labels
question This is a question about the library

Comments

@Sneakyninja0129
Copy link

Im brand new to creating discord bots but i cant figure out how to get the bot to join the channel I AM IN. I know how to get the bot to join a channel with its ID but cant figure out the other way. Plz help

@Rapptz Rapptz added the question This is a question about the library label Jun 3, 2017
@Rapptz
Copy link
Owner

Rapptz commented Jun 3, 2017

You have to query the member voice state via Member.voice and then get the voice channel from that.

Something like member.voice.voice_channel is not None. Where member can be e.g. message.author.

@Rapptz Rapptz closed this as completed Jun 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question about the library
Projects
None yet
Development

No branches or pull requests

2 participants