misc: add UNKNOWN_WEBHOOK error code (#2775)

* Add UNKNOWN_WEBHOOK error code

* docs: Update typings
This commit is contained in:
Kyra
2018-08-21 10:41:42 +02:00
committed by SpaceEEC
parent 5787deef26
commit 6be8172539
2 changed files with 3 additions and 0 deletions

View File

@@ -435,6 +435,7 @@ exports.Colors = {
* * UNKNOWN_TOKEN
* * UNKNOWN_USER
* * UNKNOWN_EMOJI
* * UNKNOWN_WEBHOOK
* * BOT_PROHIBITED_ENDPOINT
* * BOT_ONLY_ENDPOINT
* * MAXIMUM_GUILDS
@@ -481,6 +482,7 @@ exports.APIErrors = {
UNKNOWN_TOKEN: 10012,
UNKNOWN_USER: 10013,
UNKNOWN_EMOJI: 10014,
UNKNOWN_WEBHOOK: 10015,
BOT_PROHIBITED_ENDPOINT: 20001,
BOT_ONLY_ENDPOINT: 20002,
MAXIMUM_GUILDS: 30001,

1
typings/index.d.ts vendored
View File

@@ -1380,6 +1380,7 @@ declare module 'discord.js' {
UNKNOWN_TOKEN: number;
UNKNOWN_USER: number;
UNKNOWN_EMOJI: number;
UNKNOWN_WEBHOOK: number;
BOT_PROHIBITED_ENDPOINT: number;
BOT_ONLY_ENDPOINT: number;
MAXIMUM_GUILDS: number;