mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 14:02:02 +00:00
docs(ClientUser): fix example for setActivity method (#2880)
This commit is contained in:
parent
78c4be52c6
commit
fd25d19c9c
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ class ClientUser extends Structures.get('User') {
|
|||
* @example
|
||||
* // Set the client user's activity
|
||||
* client.user.setActivity('discord.js', { type: 'WATCHING' })
|
||||
* .then(presence => console.log(`Activity set to ${presence.game.name}`))
|
||||
* .then(presence => console.log(`Activity set to ${presence.activity.name}`))
|
||||
* .catch(console.error);
|
||||
*/
|
||||
setActivity(name, options = {}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue