fix: add presence to ClientPresence from ClientOptions (#5041)

This commit is contained in:
Mirdukkk
2020-12-13 05:14:23 +03:00
committed by GitHub
parent 9042d19c4e
commit 9c7fe34c50
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ class ClientPresence extends Presence {
* @param {Object} [data={}] The data for the client presence
*/
constructor(client, data = {}) {
super(client, Object.assign(data, { status: 'online', user: { id: null } }));
super(client, Object.assign(data, { status: data.status || 'online', user: { id: null } }));
}
async set(presence) {