mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix: add presence to ClientPresence from ClientOptions (#5041)
This commit is contained in:
@@ -131,7 +131,7 @@ class Client extends BaseClient {
|
||||
* @private
|
||||
* @type {ClientPresence}
|
||||
*/
|
||||
this.presence = new ClientPresence(this);
|
||||
this.presence = new ClientPresence(this, options.presence);
|
||||
|
||||
Object.defineProperty(this, 'token', { writable: true });
|
||||
if (!browser && !this.token && 'DISCORD_TOKEN' in process.env) {
|
||||
|
||||
Reference in New Issue
Block a user