cronokirby / alchemy

A discord library for Elixir
MIT License
151 stars 34 forks source link

How to specify voice channels #51

Closed Zesky665 closed 6 years ago

Zesky665 commented 6 years ago

I've tried and somewhat successfully implemented the example from the introduction. The issue I've noticed is that there doesn't seem to be a way to get the id of a voice channel through the code itself. The comment in the example mentions that the bot will join the default voice channel, which isn't what has happened on my end.

cronokirby commented 6 years ago

Example:

{:ok, guild} = Cogs.guild()
some_voice_channel = Enum.find(guild.channels, &match?(%{type: :voice}, &1))

Perhaps we should replace the example in the readme with something like this, since the default channel will no longer work...

Zesky665 commented 6 years ago

I'll see if I can do that and add some more examples. I'm currently working on a bot with this library that has a lot of basic features, perhaps we can link to it as an example.