Nostrum.Voice.playing-question-mark
You're seeing just the function
playing-question-mark
, go back to Nostrum.Voice module for more information.
Specs
playing?(Nostrum.Struct.Guild.id()) :: boolean()
Checks if the bot is playing sound in a voice channel.
Parameters
guild_id
- ID of guild to check if audio being played.
Returns true
if the bot is currently being played in a voice channel, otherwise false
.
Examples
iex> Nostrum.Voice.join_channel(123456789, 420691337)
iex> Nostrum.Voice.play(123456789, "https://a-real-site.biz/RickRoll.m4a")
iex> Nostrum.Voice.playing?(123456789)
true
iex> Nostrum.Voice.pause(123456789)
iex> Nostrum.Voice.playing?(123456789)
false