diff --git a/src/channel.ts b/src/channel.ts index dd534c982..de792803d 100644 --- a/src/channel.ts +++ b/src/channel.ts @@ -62,6 +62,7 @@ import type { SearchPayload, SendMessageAPIResponse, SendMessageOptions, + SendReactionOptions, TruncateChannelAPIResponse, TruncateOptions, UpdateChannelAPIResponse, @@ -420,7 +421,7 @@ export class Channel { async sendReaction( messageID: string, reaction: Reaction, - options?: { enforce_unique?: boolean; skip_push?: boolean }, + options?: SendReactionOptions, ) { if (!messageID) { throw Error(`Message id is missing`); @@ -464,7 +465,7 @@ export class Channel { async _sendReaction( messageID: string, reaction: Reaction, - options?: { enforce_unique?: boolean; skip_push?: boolean }, + options?: SendReactionOptions, ) { if (!messageID) { throw Error(`Message id is missing`); diff --git a/src/types.ts b/src/types.ts index cbfdc9869..c992591fb 100644 --- a/src/types.ts +++ b/src/types.ts @@ -2748,6 +2748,12 @@ export type SendMessageOptions = { export type UpdateMessageOptions = { skip_enrich_url?: boolean; + skip_push?: boolean; +}; + +export type SendReactionOptions = { + enforce_unique?: boolean; + skip_push?: boolean; }; export type GetMessageOptions = { @@ -2839,6 +2845,7 @@ export type Reaction = CustomReactionData & { score?: number; user?: UserResponse | null; user_id?: string; + emoji_code?: string; }; export type Resource =