File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " detritus-client-socket" ,
3
- "version" : " 0.3.4 " ,
3
+ "version" : " 0.3.5 " ,
4
4
"description" : " A TypeScript NodeJS library to interact with Discord's Gateway" ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
export const Package = Object . freeze ( {
2
2
URL : 'https://github.com/detritusjs/client-socket' ,
3
- VERSION : '0.3.4 ' ,
3
+ VERSION : '0.3.5 ' ,
4
4
} ) ;
5
5
6
6
function normalize ( object : { [ key : string ] : any } ) {
Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ export class Socket extends EventEmitter {
251
251
assets : activity . assets ,
252
252
created_at : activity . createdAt ,
253
253
details : activity . details ,
254
+ emoji : activity . emoji ,
254
255
flags : activity . flags ,
255
256
metadata : activity . metadata ,
256
257
name : activity . name ,
@@ -271,6 +272,13 @@ export class Socket extends EventEmitter {
271
272
small_text : activity . assets . smallText ,
272
273
} ;
273
274
}
275
+ if ( activity . emoji ) {
276
+ raw . emoji = {
277
+ animated : activity . emoji . animated ,
278
+ id : activity . emoji . id ,
279
+ name : activity . emoji . name ,
280
+ } ;
281
+ }
274
282
if ( activity . party ) {
275
283
raw . party = {
276
284
id : activity . party . id ,
@@ -1010,6 +1018,11 @@ export interface PresenceActivity {
1010
1018
} ,
1011
1019
createdAt ?: number ,
1012
1020
details ?: string ,
1021
+ emoji ?: {
1022
+ animated : boolean ,
1023
+ id : string ,
1024
+ name : string ,
1025
+ } ,
1013
1026
flags ?: number ,
1014
1027
metadata ?: { [ key : string ] : any } ,
1015
1028
name : string ,
You can’t perform that action at this time.
0 commit comments