Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Error Codes #61

Closed
b1naryth1ef opened this issue May 25, 2016 · 3 comments
Closed

API Error Codes #61

b1naryth1ef opened this issue May 25, 2016 · 3 comments
Assignees
Labels
api API issue

Comments

@b1naryth1ef
Copy link
Contributor

As part of an ongoing effort to cleanup and make our API more library friendly, we're going to be adding a set of integral error codes that are returned alongside the current message key, within our JSON error responses.

Codes

Code Description
10001 Unknown Account
10002 Unknown Application
10003 Unknown Channel
10004 Unknown Guild
10005 Unknown Integration
10006 Unknown Invite
10007 Unknown Member
10008 Unknown Message
10009 Unknown Overwrite
10010 Unknown Provider
10011 Unknown Role
10012 Unknown Token
10013 Unknown User
20001 Bots cannot use this endpoint
20002 Only bots can use this endpoint
30001 Maximum number of guilds reached (100)
30002 Maximum number of friends reached (1000)
40001 Unauthorized
50001 Missing Access
50002 Invalid Account Type
50003 Cannot execute action on a DM channel
50004 Embed Disabled
50005 Cannot edit a message authored by another user
50006 Cannot send an empty message
50007 Cannot send messages to this user
50008 Cannot send messages in a voice channel
50009 Channel verification level is too high
50010 OAuth2 application does not have a bot
50011 OAuth2 application limit reached
50012 Invalid OAuth State
50013 Missing Permissions
50014 Invalid authentication token
50015 Note is too long
50016 Provided too few or too many messages to delete. Must provide at least 2 and fewer than 100 messages to delete.

Example

{
  "code": 50014,
  "message": "Invalid authentication token"
}
@jhgg
Copy link
Member

jhgg commented Jun 6, 2016

@night didn't see this in #71?

@night night closed this as completed Jun 6, 2016
@BeamNawapat
Copy link

If have error code 50007 in cmd how i change that to sent embed to that channel?

@b1naryth1ef b1naryth1ef removed their assignment Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API issue
Projects
None yet
Development

No branches or pull requests

4 participants