Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add initial support for super reactions #744

Merged
merged 16 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions deno/payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ export interface APIReaction {
* Times this emoji has been used to react
*/
count: number;
/**
* The reaction count details object
*/
count_details: APIReactionCountDetails;
/**
* Whether the current user reacted using this emoji
*/
Expand All @@ -868,6 +872,24 @@ export interface APIReaction {
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIPartialEmoji;
/**
* HEX colors used for super reaction
Mateo-tem marked this conversation as resolved.
Show resolved Hide resolved
*/
burst_colors: string[];
}

/**
* https://discord.com/developers/docs/resources/channel#reaction-count-details-object-reaction-count-details-structure
*/
export interface APIReactionCountDetails {
/**
* Count of super reactions
*/
burst: number;
/**
* Count of normal reactions
*/
normal: number;
}

/**
Expand Down
22 changes: 22 additions & 0 deletions deno/payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ export interface APIReaction {
* Times this emoji has been used to react
*/
count: number;
/**
* The reaction count details object
*/
count_details: APIReactionCountDetails;
/**
* Whether the current user reacted using this emoji
*/
Expand All @@ -832,6 +836,24 @@ export interface APIReaction {
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIPartialEmoji;
/**
* HEX colors used for super reaction
Mateo-tem marked this conversation as resolved.
Show resolved Hide resolved
*/
burst_colors: string[];
}

/**
* https://discord.com/developers/docs/resources/channel#reaction-count-details-object-reaction-count-details-structure
*/
export interface APIReactionCountDetails {
/**
* Count of super reactions
*/
burst: number;
/**
* Count of normal reactions
*/
normal: number;
}

/**
Expand Down
1 change: 1 addition & 0 deletions deno/rest/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export enum RESTJSONErrorCodes {
NoUsersWithDiscordTagExist = 80_004,

ReactionWasBlocked = 90_001,
UserCannotUseBurstReactions,

ApplicationNotYetAvailable = 110_001,

Expand Down
22 changes: 22 additions & 0 deletions payloads/v10/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ export interface APIReaction {
* Times this emoji has been used to react
*/
count: number;
/**
* The reaction count details object
*/
count_details: APIReactionCountDetails;
/**
* Whether the current user reacted using this emoji
*/
Expand All @@ -868,6 +872,24 @@ export interface APIReaction {
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIPartialEmoji;
/**
* HEX colors used for super reaction
Mateo-tem marked this conversation as resolved.
Show resolved Hide resolved
*/
burst_colors: string[];
}

/**
* https://discord.com/developers/docs/resources/channel#reaction-count-details-object-reaction-count-details-structure
*/
export interface APIReactionCountDetails {
/**
* Count of super reactions
*/
burst: number;
/**
* Count of normal reactions
*/
normal: number;
}

/**
Expand Down
22 changes: 22 additions & 0 deletions payloads/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,10 @@ export interface APIReaction {
* Times this emoji has been used to react
*/
count: number;
/**
* The reaction count details object
*/
count_details: APIReactionCountDetails;
/**
* Whether the current user reacted using this emoji
*/
Expand All @@ -832,6 +836,24 @@ export interface APIReaction {
* See https://discord.com/developers/docs/resources/emoji#emoji-object
*/
emoji: APIPartialEmoji;
/**
* HEX colors used for super reaction
Mateo-tem marked this conversation as resolved.
Show resolved Hide resolved
*/
burst_colors: string[];
}

/**
* https://discord.com/developers/docs/resources/channel#reaction-count-details-object-reaction-count-details-structure
*/
export interface APIReactionCountDetails {
/**
* Count of super reactions
*/
burst: number;
/**
* Count of normal reactions
*/
normal: number;
}

/**
Expand Down
1 change: 1 addition & 0 deletions rest/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ export enum RESTJSONErrorCodes {
NoUsersWithDiscordTagExist = 80_004,

ReactionWasBlocked = 90_001,
UserCannotUseBurstReactions,

ApplicationNotYetAvailable = 110_001,

Expand Down