diff --git a/common/index.ts b/common/index.ts index 73280d01..b59b4ad4 100644 --- a/common/index.ts +++ b/common/index.ts @@ -87,6 +87,8 @@ export const enum RESTJSONErrorCodes { CannotExecuteActionOnThisChannelType = 50024, InvalidOauth2AccessToken, + InvalidWebhookToken = 50027, + InvalidRecipients = 50033, OneOfTheMessagesProvidedWasTooOldForBulkDelete, InvalidFormBodyOrContentType, diff --git a/v8/rest/webhook.ts b/v8/rest/webhook.ts index bc1135b7..98df6f88 100644 --- a/v8/rest/webhook.ts +++ b/v8/rest/webhook.ts @@ -207,12 +207,20 @@ export type RESTPatchAPIWebhookWithTokenMessageJSONBody = Nullable< Pick >; +/** + * https://discord.com/developers/docs/resources/webhook#edit-webhook-message + */ export type RESTPatchAPIWebhookWithTokenMessageFormDataBody = | { payload_json: string; } | RESTPatchAPIWebhookWithTokenMessageJSONBody; +/** + * https://discord.com/developers/docs/resources/webhook#edit-webhook-message + */ +export type RESTPatchAPIWebhookWithTokenMessageResult = APIMessage; + /** * https://discord.com/developers/docs/resources/webhook#delete-webhook-message */