[−][src]Enum twilight_http::api_error::ErrorCode
Variants (Non-exhaustive)
General error (such as a malformed request body, amongst other things)
Unknown account
Unknown application
Unknown channel
Unknown guild
Unknown integration
Unknown invite
Unknown member
Unknown message
Unknown permission overwrite
Unknown provider
Unknown role
Unknown token
Unknown user
Unknown emoji
Unknown webhook
Unknown ban
Unknown SKU
Unknown Store Listing
Unknown entitlement
Unknown build
Unknown lobby
Unknown branch
Unknown redistributable
Bots cannot use this endpoint
Only bots can use this endpoint
Maximum number of guilds reached (100)
Maximum number of friends reached (1000)
Maximum number of pins reached for the channel (50)
Maximum number of guild roles reached (250)
Maximum number of webhooks reached (10)
Maximum number of reactions reached (20)
Maximum number of guild channels reached (500)
Maximum number of attachments in a message reached (10)
Maximum number of invites reached (1000)
Unauthorized. Provide a valid token and try again
You need to verify your account in order to perform this action
Request entity too large. Try sending something smaller in size
This feature has been temporarily disabled server-side
The user is banned from this guild
Missing access
Invalid account type
Cannot execute action on a DM channel
Guild widget disabled
Cannot edit a message authored by another user
Cannot send an empty message
Cannot send messages to this user
Cannot send messages in a voice channel
Channel verification level is too high for you to gain access
OAuth2 application does not have a bot
OAuth2 application limit reached
Invalid OAuth2 state
You lack permissions to perform that action
Invalid authentication token provided
Note was too long
Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete
A message can only be pinned to the channel it was sent in
Invite code was either invalid or taken
Cannot execute action on a system message
Invalid OAuth2 access token provided
A message provided was too old to bulk delete
Invalid form body (returned for both application/json and multipart/form-data bodies), or invalid Content-Type provided
An invite was accepted to a guild the application's bot is not in
Invalid API version provided
Reaction was blocked
API resource is currently overloaded. Try again a little later
Other(u64)
A status code that Twilight doesn't have registered.
Please report the number if you see this variant!
Implementations
impl ErrorCode
[src]
Trait Implementations
impl Clone for ErrorCode
[src]
impl Copy for ErrorCode
[src]
impl Debug for ErrorCode
[src]
impl<'de> Deserialize<'de> for ErrorCode
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
impl Display for ErrorCode
[src]
impl Eq for ErrorCode
[src]
impl From<u64> for ErrorCode
[src]
impl PartialEq<ErrorCode> for ErrorCode
[src]
impl Serialize for ErrorCode
[src]
impl StructuralEq for ErrorCode
[src]
impl StructuralPartialEq for ErrorCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,