@@ -17,42 +17,41 @@ export enum ActivityPartyPrivacy {
1717}
1818
1919export type SetActivity = {
20- name ?: string ;
21- type ?: ActivityType ;
22- url ?: string ;
20+ name ?: string ;
21+ type ?: ActivityType ;
22+ url ?: string ;
2323
24- state ?: string ;
25- details ?: string ;
24+ state ?: string ;
25+ details ?: string ;
2626
27- startTimestamp ?: number | Date ;
28- endTimestamp ?: number | Date ;
27+ startTimestamp ?: number | Date ;
28+ endTimestamp ?: number | Date ;
2929
30- largeImageKey ?: string ;
31- smallImageKey ?: string ;
32- largeImageText ?: string ;
33- smallImageText ?: string ;
30+ largeImageKey ?: string ;
31+ smallImageKey ?: string ;
32+ largeImageText ?: string ;
33+ smallImageText ?: string ;
3434
35- partyId ?: string ;
36- partyPrivacy ?: ActivityPartyPrivacy ;
37- partySize ?: number ;
38- partyMax ?: number ;
35+ partyId ?: string ;
36+ partySize ?: number ;
37+ partyMax ?: number ;
3938
40- matchSecret ?: string ;
41- joinSecret ?: string ;
42- spectateSecret ?: string ;
39+ matchSecret ?: string ;
40+ joinSecret ?: string ;
41+ spectateSecret ?: string ;
4342
44- instance ?: boolean ;
45- buttons ?: GatewayActivityButton [ ] ;
46- supportedPlatforms ?: ( ActivitySupportedPlatform | `${ActivitySupportedPlatform } `) [ ] ;
43+ instance ?: boolean ;
44+ buttons ?: GatewayActivityButton [ ] ;
45+ supportedPlatforms ?: ( ActivitySupportedPlatform | `${ActivitySupportedPlatform } `) [ ] ;
4746
48- applicationId ?: string ;
49- flags ?: number ;
47+ applicationId ?: string ;
48+ flags ?: number ;
5049
51- emoji ?: {
52- name : string ;
53- id ?: string ;
54- animated ?: boolean ;
55- } ;
50+ emoji ?: {
51+ name : string ;
52+ id ?: string ;
53+ animated ?: boolean ;
54+ } ;
5655} ;
5756
5857
@@ -278,10 +277,9 @@ export class ClientUser extends User {
278277 }
279278
280279 // Party (only if any defined)
281- if ( activity . partyId || activity . partySize || activity . partyMax || activity . partyPrivacy ) {
280+ if ( activity . partyId || activity . partySize || activity . partyMax ) {
282281 formattedActivity . party = { } ;
283282 if ( activity . partyId ) formattedActivity . party . id = activity . partyId ;
284- if ( activity . partyPrivacy ) formattedActivity . party . privacy = activity . partyPrivacy ;
285283 if ( activity . partySize !== undefined && activity . partyMax !== undefined ) {
286284 formattedActivity . party . size = [ activity . partySize , activity . partyMax ] ;
287285 }
0 commit comments