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)]
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,
},