Skip to content

Commit 1821fc1

Browse files
authored
Merge pull request #378 from Blocksnmore/main
2 parents 824e70c + e926c7b commit 1821fc1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/structures/presence.ts

+6
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ export class ClientPresence {
124124
else {
125125
activity.map((e) => {
126126
if (typeof e.type === 'string') e.type = ActivityTypes[e.type]
127+
128+
if (e.type === ActivityTypes.CUSTOM_STATUS) {
129+
e.state = e.name
130+
e.name = 'Custom Status'
131+
}
132+
127133
return e
128134
})
129135
return activity

src/types/presence.ts

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export interface ActivityGame {
7272
name: string
7373
type: 0 | 1 | 2 | 3 | 4 | 5 | ActivityType
7474
url?: string
75+
/** Used for CUSTOM_STATUS */
76+
state?: string
7577
}
7678

7779
export interface ClientActivity {

0 commit comments

Comments
 (0)