mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
fix: add presence to ClientPresence from ClientOptions (#5041)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user