feat(RESTJSONErrorCodes): rename ChannelSendRateLimit to ChannelWriteRateLimit (#1627)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Almeida
2026-04-15 01:12:36 +01:00
committed by GitHub
parent 09c71fe9d1
commit d5dc47a36c
2 changed files with 12 additions and 4 deletions

8
deno/rest/common.ts generated
View File

@@ -75,8 +75,12 @@ export enum RESTJSONErrorCodes {
UnderMinimumAge = 20_024,
ChannelSendRateLimit = 20_028,
ServerSendRateLimit,
ChannelWriteRateLimit = 20_028,
/**
* @deprecated Use {@link RESTJSONErrorCodes.ChannelWriteRateLimit} instead
*/
ChannelSendRateLimit = ChannelWriteRateLimit,
ServerSendRateLimit = 20_029,
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20_031,

View File

@@ -75,8 +75,12 @@ export enum RESTJSONErrorCodes {
UnderMinimumAge = 20_024,
ChannelSendRateLimit = 20_028,
ServerSendRateLimit,
ChannelWriteRateLimit = 20_028,
/**
* @deprecated Use {@link RESTJSONErrorCodes.ChannelWriteRateLimit} instead
*/
ChannelSendRateLimit = ChannelWriteRateLimit,
ServerSendRateLimit = 20_029,
StageTopicServerNameServerDescriptionOrChannelNamesContainDisallowedWords = 20_031,