feat: error messages for ParseGuildVCToTextChannelError
This commit is contained in:
@@ -75,18 +75,23 @@ impl From<AudioSampleRate> for SampleRate {
|
||||
|
||||
#[derive(Debug, Snafu)]
|
||||
enum ParseGuildVCToTextChannelError {
|
||||
/// the guild ID needs to be included with : before the voice channel to text channel mapping
|
||||
NoScope,
|
||||
|
||||
/// a voice channel ID needs to be specified then -> to the corresponding text channel ID
|
||||
NoRelation,
|
||||
|
||||
/// could not parse the guild ID
|
||||
ParseGuildError {
|
||||
source: <Id<GuildMarker> as FromStr>::Err,
|
||||
},
|
||||
|
||||
/// could not parse the voice channel ID
|
||||
ParseVoiceChannelError {
|
||||
source: <Id<ChannelMarker> as FromStr>::Err,
|
||||
},
|
||||
|
||||
/// could not parse the text channel ID
|
||||
ParseTextChannelError {
|
||||
source: <Id<ChannelMarker> as FromStr>::Err,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user