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