Nostrum.Voice.resume
You're seeing just the function
resume
, go back to Nostrum.Voice module for more information.
Specs
resume(Nostrum.Struct.Guild.id()) :: :ok | {:error, String.t()}
Resumes playing the current paused sound in a voice channel.
The bot must be connected to a voice channel in the guild specified.
Parameters
guild_id
- ID of guild whose voice channel the sound will be resumed in.
Returns {:error, reason}
if unable to resume or no sound has been paused, otherwise returns :ok
.
This function is used to resume a sound that had previously been paused.
Examples
iex> Nostrum.Voice.join_channel(123456789, 420691337)
iex> Nostrum.Voice.play(123456789, "~/stuff/Toto - Africa (Bass Boosted)")
iex> Nostrum.Voice.pause(123456789)
iex> Nostrum.Voice.resume(123456789)