The client that this presence manager will be used by.
The options for this presence manager.
Readonly
clientThe client that this presence manager will be used by.
PresenceManager
The options for this presence manager.
PresenceManager
{
templates: ['{num_guilds} servers!'],
status: 'online',
type: 'PLAYING',
afk: false
}
Private
refreshThe refresh interval handle for this presence manager.
PresenceManager
Readonly
templaterThe presence templater used by this presence manager.
PresenceManager
Set the refresh interval at which the presences should update. The presences that are used are the ones specified in the templates option.
The interval at which the presences should update. Must be a positive integer.
Throws if the interval is not positive.
client#presenceRefreshInterval
Update the client's presence.
The status message to set. It can be a templated message. See PresenceTemplater.
Additional data to pass to the presence updater.
A promise that resolves on presence update.
client#presenceUpdated
client#presenceUpdateError
Generated using TypeDoc
A class to manage the client's presence statuses.