Skip to content

Commit

Permalink
feat: add type query param for get reactions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo-tem committed Feb 22, 2024
1 parent c008413 commit ccd87f9
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 @@ -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
*/
Expand All @@ -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
*/
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 @@ -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
*/
Expand All @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions rest/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down
12 changes: 12 additions & 0 deletions rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
*/
Expand Down

0 comments on commit ccd87f9

Please sign in to comment.