feat: error messages for ParseGuildVCToTextChannelError

This commit is contained in:
2026-05-20 16:00:47 -04:00
parent 8f433a065e
commit c04338155b

View File

@@ -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,
}, },