pub enum Invalid {
AllowDenyOverlap,
NotChannelScoped,
SetsUnknownBits,
NewcomerMaskHidesChannels,
Everyone,
DuplicateRole,
BadPosition,
PreApprovedWithApproval,
LooserAdmission,
Duration,
}Expand description
A malformed request (BAD_REQUEST).
Variants§
AllowDenyOverlap
An override has a bit in both allow and deny.
NotChannelScoped
An override holds a known bit that is not channel-scoped.
SetsUnknownBits
The command sets an unknown bit that was not already present.
NewcomerMaskHidesChannels
newcomer_restrictions contains VIEW_CHANNEL or READ_MESSAGE_HISTORY.
Everyone
@everyone was listed where it may not be (reorder, delete, assign).
DuplicateRole
A role appears twice in one request.
BadPosition
The resulting role positions are not unique, or a position is 0.
PreApprovedWithApproval
pre_approved together with requires_approval.
LooserAdmission
Invitation admission overrides are not stricter than the policy.
Duration
A duration is outside its bounds (timeout, lockdown).
Trait Implementations§
impl Copy for Invalid
impl Eq for Invalid
impl StructuralPartialEq for Invalid
Auto Trait Implementations§
impl Freeze for Invalid
impl RefUnwindSafe for Invalid
impl Send for Invalid
impl Sync for Invalid
impl Unpin for Invalid
impl UnsafeUnpin for Invalid
impl UnwindSafe for Invalid
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