From ccd87f9f74120ee5207ee90929020f6cfc0490b5 Mon Sep 17 00:00:00 2001 From: Mateo Date: Wed, 21 Feb 2024 19:04:21 -0500 Subject: [PATCH] feat: add type query param for get reactions endpoint --- 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 a6a727f6e..9250a1002 100644 --- a/deno/rest/v10/channel.ts +++ b/deno/rest/v10/channel.ts @@ -366,6 +366,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type (0 for normal and 1 for super) + */ + type: ReactionType; /** * Get users after this user ID */ @@ -378,6 +382,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 019507f50..afb27af40 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -374,6 +374,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type (0 for normal and 1 for super) + */ + type: ReactionType; /** * Get users after this user ID */ @@ -386,6 +390,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 1bd4a1d20..326e05ca3 100644 --- a/rest/v10/channel.ts +++ b/rest/v10/channel.ts @@ -366,6 +366,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type (0 for normal and 1 for super) + */ + type: ReactionType; /** * Get users after this user ID */ @@ -378,6 +382,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 0645a1434..0d3645955 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -374,6 +374,10 @@ export type RESTDeleteAPIChannelMessageUserReactionResult = never; * https://discord.com/developers/docs/resources/channel#get-reactions */ export interface RESTGetAPIChannelMessageReactionUsersQuery { + /** + * The reaction type (0 for normal and 1 for super) + */ + type: ReactionType; /** * Get users after this user ID */ @@ -386,6 +390,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 */