Update ClientPresence.js
This commit is contained in:
parent
3e84e501b7
commit
b06f0fdc33
@ -45,7 +45,7 @@ class ClientPresence extends Presence {
|
|||||||
const data = {
|
const data = {
|
||||||
activities: [],
|
activities: [],
|
||||||
afk: typeof afk === 'boolean' ? afk : false,
|
afk: typeof afk === 'boolean' ? afk : false,
|
||||||
since: typeof since === 'number' && !Number.isNaN(since) ? since : null,
|
since: typeof since === 'number' && !Number.isNaN(since) ? since : 0,
|
||||||
status: status ?? this.status,
|
status: status ?? this.status,
|
||||||
};
|
};
|
||||||
if (activities?.length) {
|
if (activities?.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user