mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
misc: add UNKNOWN_WEBHOOK error code (#2775)
* Add UNKNOWN_WEBHOOK error code * docs: Update typings
This commit is contained in:
@@ -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
1
typings/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user