File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ import type {
6262 SearchPayload ,
6363 SendMessageAPIResponse ,
6464 SendMessageOptions ,
65+ SendReactionOptions ,
6566 TruncateChannelAPIResponse ,
6667 TruncateOptions ,
6768 UpdateChannelAPIResponse ,
@@ -420,7 +421,7 @@ export class Channel {
420421 async sendReaction (
421422 messageID : string ,
422423 reaction : Reaction ,
423- options ?: { enforce_unique ?: boolean ; skip_push ?: boolean } ,
424+ options ?: SendReactionOptions ,
424425 ) {
425426 if ( ! messageID ) {
426427 throw Error ( `Message id is missing` ) ;
@@ -464,7 +465,7 @@ export class Channel {
464465 async _sendReaction (
465466 messageID : string ,
466467 reaction : Reaction ,
467- options ?: { enforce_unique ?: boolean ; skip_push ?: boolean } ,
468+ options ?: SendReactionOptions ,
468469 ) {
469470 if ( ! messageID ) {
470471 throw Error ( `Message id is missing` ) ;
Original file line number Diff line number Diff line change @@ -2750,6 +2750,12 @@ export type SendMessageOptions = {
27502750
27512751export type UpdateMessageOptions = {
27522752 skip_enrich_url ?: boolean ;
2753+ skip_push ?: boolean ;
2754+ } ;
2755+
2756+ export type SendReactionOptions = {
2757+ enforce_unique ?: boolean ;
2758+ skip_push ?: boolean ;
27532759} ;
27542760
27552761export type GetMessageOptions = {
@@ -2841,6 +2847,7 @@ export type Reaction = CustomReactionData & {
28412847 score ?: number ;
28422848 user ?: UserResponse | null ;
28432849 user_id ?: string ;
2850+ emoji_code ?: string ;
28442851} ;
28452852
28462853export type Resource =
You can’t perform that action at this time.
0 commit comments