From 9a578489ad05b2ba8ed8d496db19cb86fa572ef7 Mon Sep 17 00:00:00 2001 From: Almeida Date: Wed, 9 Mar 2022 19:12:00 +0000 Subject: [PATCH] refactor(RESTJSONErrorCodes): update error `50008` key (#338) BREAKING CHANGE: The error code `50008` has been renamed from `CannotSendMessagesInVoiceChannel` to `CannotSendMessagesInNonTextChannel` --- deno/rest/common.ts | 2 +- rest/common.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deno/rest/common.ts b/deno/rest/common.ts index 71fd4701..e89a72d7 100644 --- a/deno/rest/common.ts +++ b/deno/rest/common.ts @@ -134,7 +134,7 @@ export enum RESTJSONErrorCodes { CannotEditMessageAuthoredByAnotherUser, CannotSendAnEmptyMessage, CannotSendMessagesToThisUser, - CannotSendMessagesInVoiceChannel, + CannotSendMessagesInNonTextChannel, ChannelVerificationLevelTooHighForYouToGainAccess, OAuth2ApplicationDoesNotHaveBot, OAuth2ApplicationLimitReached, diff --git a/rest/common.ts b/rest/common.ts index 71fd4701..e89a72d7 100644 --- a/rest/common.ts +++ b/rest/common.ts @@ -134,7 +134,7 @@ export enum RESTJSONErrorCodes { CannotEditMessageAuthoredByAnotherUser, CannotSendAnEmptyMessage, CannotSendMessagesToThisUser, - CannotSendMessagesInVoiceChannel, + CannotSendMessagesInNonTextChannel, ChannelVerificationLevelTooHighForYouToGainAccess, OAuth2ApplicationDoesNotHaveBot, OAuth2ApplicationLimitReached,