lib/nostrum/error/voice_error.ex
defmodule Nostrum.Error.VoiceError do
@moduledoc """
Represents an error when playing sound through voice channels.
This occurs when attempting to play audio and the file can't be found
for the ffmpeg, youtube-dl, or streamlink executables.
"""
defexception [:message]
def exception(reason: reason, executable: executable) do
msg = "ERROR: #{reason} - #{executable} improperly configured"
%__MODULE__{message: msg}
end
end