mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix(ClientUser): setActivity should resolve with a Presence
This commit is contained in:
@@ -289,7 +289,7 @@ class ClientUser extends User {
|
|||||||
if (!name) return this.setPresence({ game: null });
|
if (!name) return this.setPresence({ game: null });
|
||||||
return this.setPresence({
|
return this.setPresence({
|
||||||
game: { name, type, url },
|
game: { name, type, url },
|
||||||
});
|
}).then(clientUser => clientUser.presence);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user