You're seeing just the function stop, go back to Nostrum.Voice module for more information.


stop( :: :ok | {:error, String.t()}

Stops the current sound being played in a voice channel.

The bot must be connected to a voice channel in the guild specified.


  • guild_id - ID of guild whose voice channel the sound will be stopped in.

Returns {:error, reason} if unable to stop or no sound is playing, else :ok.

If a sound has finished playing, this function does not need to be called to start playing another sound.


iex> Nostrum.Voice.join_channel(123456789, 420691337)

iex>, "")

iex> Nostrum.Voice.stop(123456789)