Nostrum.Voice.ready-question-mark
You're seeing just the function
ready-question-mark
, go back to Nostrum.Voice module for more information.
Specs
ready?(Nostrum.Struct.Guild.id()) :: boolean()
Checks if the connection is up and ready to play audio.
Parameters
guild_id
- ID of guild to check if voice connection is up.
Returns true
if the bot is connected to a voice channel, otherwise false
.
This function does not check if audio is already playing. For that, use playing?/1
.
Examples
iex> Nostrum.Voice.join_channel(123456789, 420691337)
iex> Nostrum.Voice.ready?(123456789)
true
iex> Nostrum.Voice.leave_channel(123456789)
iex> Nostrum.Voice.ready?(123456789)
false