Skip to content

Commit

Permalink
feat: add type query param for get reactions endpoint (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo-tem committed May 22, 2024
1 parent c8bfdeb commit ddb2bde
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deno/rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions deno/rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down

0 comments on commit ddb2bde

Please sign in to comment.