namespace Maki.Rest
{
///
/// Discord Rest API error codes
///
enum RestErrorCode
{
///
/// Specific to this library, used when there is no error
///
Ok = 0,
#region 1xxxx
///
/// Unknown account
///
UnknownAccount = 10001,
///
/// Unknown application
///
UnknownApplication = 10002,
///
/// Unknown channel
///
UnknownChannel = 10003,
///
/// Unknown guild
///
UnknownGuild = 10004,
///
/// Unknown integration
///
UnknownIntegration = 10005,
///
/// Unknown invite
///
UnknownInvite = 10006,
///
/// Unknown member
///
UnknownMember = 10007,
///
/// Unknown message
///
UnknownMessage = 10008,
///
/// Unknown overwrite
///
UnknownOverwrite = 10009,
///
/// Unknown provider
///
UnknownProvider = 10010,
///
/// Unknown role
///
UnknownRole = 10011,
///
/// Unknown token
///
UnknownToken = 10012,
///
/// Unknown user
///
UnknownUser = 10013,
///
/// Unknown Emoji
///
UnknownEmoji = 10014,
#endregion
#region 2xxxx
///
/// Bots cannot use this endpoint
///
UserOnlyEndpoint = 20001,
///
/// Only bots can use this endpoint
///
BotOnlyEndpoint = 20002,
#endregion
#region 3xxxx
///
/// Maximum number of guilds reached (100)
///
MaximumGuildsReached = 30001,
///
/// Maximum number of friends reached (1000)
///
MaximumFriendsReached = 30002,
///
/// Maximum number of pins reached (50)
///
MaximumPinsReached = 30003,
///
/// Maximum number of guild roles reached (250)
///
MaximumRolesReached = 30005,
///
/// Too many reactions
///
TooManyReactions = 30010,
#endregion
#region 4xxxx
///
/// Unauthorized
///
Unauthorised = 40001,
#endregion
#region 5xxxx
///
/// Missing access
///
MissingAccess = 50001,
///
/// Invalid account type
///
InvalidAccountType = 50002,
///
/// Cannot execute action on a DM channel
///
CannotExecuteInDM = 50003,
///
/// Embed disabled
///
EmbedDisabled = 50004,
///
/// Cannot edit a message authored by another user
///
CannotEditForeignMessages = 50005,
///
/// Cannot send an empty message
///
CannotSendEmptyMessage = 50006,
///
/// Cannot send messages to this user
///
CannotSendToUser = 50007,
///
/// Cannot send messages in a voice channel
///
CannotSendTextInVoiceChannel = 50008,
///
/// Channel verification level is too high
///
ChannelVerificationTooHigh = 50009,
///
/// OAuth2 application does not have a bot
///
AppDoesNotHaveBot = 50010,
///
/// OAuth2 application limit reached
///
AppLimitReached = 50011,
///
/// Invalid OAuth state
///
InvalidOAuthState = 50012,
///
/// Missing permissions
///
MissingPermissions = 50013,
///
/// Invalid authentication token
///
InvalidAuthenticationToken = 50014,
///
/// Note is too long
///
NoteTooLong = 50015,
///
/// Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete.
///
TooFewOrManyMessageDeletes = 50016,
///
/// A message can only be pinned to the channel it was sent in
///
MessagePinInOriginChannelOnly = 50019,
///
/// A message provided was too old to bulk delete
///
MessageTooOldForBulkDelete = 50034,
#endregion
#region 9xxxx
///
/// Reaction Blocked
///
ReactionBlocked = 90001,
#endregion
}
}