From ddb2bde07776f0b9f370ab8ff6bf5c95be0138fd Mon Sep 17 00:00:00 2001 From: MateoDeveloper <79017590+Mateo-tem@users.noreply.github.com> Date: Wed, 22 May 2024 05:04:40 -0500 Subject: [PATCH] feat: add type query param for get reactions endpoint (#879) --- deno/rest/v10/channel.ts | 12 ++++++++++++ deno/rest/v9/channel.ts | 12 ++++++++++++ rest/v10/channel.ts | 12 ++++++++++++ rest/v9/channel.ts | 12 ++++++++++++ 4 files changed, 48 insertions(+) diff --git a/deno/rest/v10/channel.ts b/deno/rest/v10/channel.ts index 4e1416f61..424a1c58a 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -373,6 +373,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type + */ + type?: ReactionType; /** * Get users after this user ID */ @@ -385,6 +389,14 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery { limit?: number; } +/** + * https://discord.com/developers/docs/resources/channel#get-reactions-reaction-types + */ +export enum ReactionType { + Normal, + Super, +} + /** * https://discord.com/developers/docs/resources/channel#get-reactions */ diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index 33e8c8c3f..9c2dca2d1 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -381,6 +381,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type + */ + type?: ReactionType; /** * Get users after this user ID */ @@ -393,6 +397,14 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery { limit?: number; } +/** + * https://discord.com/developers/docs/resources/channel#get-reactions-reaction-types + */ +export enum ReactionType { + Normal, + Super, +} + /** * https://discord.com/developers/docs/resources/channel#get-reactions */ diff --git a/rest/v10/channel.ts b/rest/v10/channel.ts index 7fbacebf9..716cf8362 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -373,6 +373,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type + */ + type?: ReactionType; /** * Get users after this user ID */ @@ -385,6 +389,14 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery { limit?: number; } +/** + * https://discord.com/developers/docs/resources/channel#get-reactions-reaction-types + */ +export enum ReactionType { + Normal, + Super, +} + /** * https://discord.com/developers/docs/resources/channel#get-reactions */ diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 86a49db1b..d96c3cbc0 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -381,6 +381,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type + */ + type?: ReactionType; /** * Get users after this user ID */ @@ -393,6 +397,14 @@ export interface RESTGetAPIChannelMessageReactionUsersQuery { limit?: number; } +/** + * https://discord.com/developers/docs/resources/channel#get-reactions-reaction-types + */ +export enum ReactionType { + Normal, + Super, +} + /** * https://discord.com/developers/docs/resources/channel#get-reactions */