mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 08:41:29 +00:00
fix(ClientUser): setActivity should resolve with a Presence
This commit is contained in:
parent
5f50d9e627
commit
a85d801a12
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue