File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ export class Message {
95
95
this . mentionedEveryone = data . mention_everyone ;
96
96
this . tts = data . tts ;
97
97
this . pinned = data . pinned ;
98
+ if ( data . call )
99
+ this . call = {
100
+ participants : data . call . participants ,
101
+ endedTimestamp : data . call . ended_timestamp
102
+ } ;
98
103
this . call = data . call ;
99
104
this . position = data . position ;
100
105
this . timestamp = Date . parse ( data . timestamp ) ;
@@ -167,7 +172,7 @@ export interface MessageCall {
167
172
/** The participants of the call. */
168
173
participants : string [ ] ;
169
174
/** The time the call ended. */
170
- ended_timestamp ?: string ;
175
+ endedTimestamp ?: string ;
171
176
}
172
177
173
178
/**
@@ -360,7 +365,10 @@ export interface MessageData {
360
365
pinned : boolean ;
361
366
mention_everyone : boolean ;
362
367
tts : boolean ;
363
- call ?: MessageCall ;
368
+ call ?: {
369
+ participants : string [ ] ;
370
+ ended_timestamp ?: string ;
371
+ } ;
364
372
position ?: number ;
365
373
thread ?: CommandChannel ;
366
374
timestamp : string ;
You can’t perform that action at this time.
0 commit comments