readyStatus

The option is set to auto-on. Automatically sync status from other Client (web, desktop) to selfbot
This commit is contained in:
March 7th
2022-04-29 12:13:59 +07:00
parent 80115acecd
commit c7cc764718
4 changed files with 15 additions and 7 deletions

View File

@@ -635,7 +635,9 @@ class Client extends BaseClient {
}
custom_status.setState(client.setting.rawSetting.custom_status?.text);
client.user.setPresence({
activities: custom_status ? [custom_status.toDiscord()] : [],
activities: custom_status
? [custom_status.toDiscord(), ...this.presence.activities.filter(a => a.type !== 'CUSTOM')]
: this.presence.activities.filter(a => a.type !== 'CUSTOM'),
status: client.setting.rawSetting.status,
});
}