Update ClientPresence.js

This commit is contained in:
Elysia 2024-02-14 07:54:37 +07:00
parent 3e84e501b7
commit b06f0fdc33

View File

@ -45,7 +45,7 @@ class ClientPresence extends Presence {
const data = {
activities: [],
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,
};
if (activities?.length) {