#[non_exhaustive]pub enum ChannelErrorType {
ChannelNotInGuild {
channel_id: Id<ChannelMarker>,
},
ChannelUnavailable {
channel_id: Id<ChannelMarker>,
},
MemberUnavailable {
guild_id: Id<GuildMarker>,
user_id: Id<UserMarker>,
},
ParentChannelNotPresent {
thread_id: Id<ChannelMarker>,
},
RoleUnavailable {
role_id: Id<RoleMarker>,
},
}Available on crate feature
permission-calculator only.Expand description
Type of ChannelError that occurred.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChannelNotInGuild
Channel is not in a guild.
This may be because the channel is a private channel.
Fields
§
channel_id: Id<ChannelMarker>ID of the channel.
Guild channel is not present in the cache.
The user’s member information is not available in the guild.
This could be because the user is not currently a member of the guild or because the member entity has not yet been received by the cache.
ParentChannelNotPresent
A thread’s parent ID is not present.
Fields
§
thread_id: Id<ChannelMarker>ID of the thread.
One of the user’s roles is not available in the guild.
The reasons this could happen could be due to the cache missing a
RoleCreate event or a user application race condition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChannelErrorType
impl RefUnwindSafe for ChannelErrorType
impl Send for ChannelErrorType
impl Sync for ChannelErrorType
impl Unpin for ChannelErrorType
impl UnwindSafe for ChannelErrorType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more