Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/Rest/RestErrorCode.cs

231 lines
5.3 KiB
C#
Raw Normal View History

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