The client that this presence async templater will use as a data source.
The custom getters object to define custom templates.
Readonly clientThe client that this presence async templater will use as a data source.
PresenceTemplater
Readonly customAn object to map a templater key to a custom getter. The getter function should return a Promise that resolves to the correct string that the templater should replace the key with.
PresenceTemplater
Readonly keysThe keys handled by this async templater. They don't include the curly braces.
AsyncTemplater
Get the actual value that will replace the key inside the template.
The key to replace.
A promise that resolves to the corresponding string for the given key.
Rejects if given key does not correspond to this async templater.
Private getPrivate getPrivate getPrivate getGet the number of guilds the client is connected to.
A promise that resolves to the number of guilds.
Private getGet the total number of members across all the guilds that the client is connected to.
A promise that resolves to the number of members.
Private getPrivate getPrivate getPrivate getGenerated using TypeDoc
An async templater class to help with the application of templates for presence statuses.
Supported templates:
{num_guild}{prefix}{cur_time}{owner_name}undefined.{client_name}undefined.{uptime}nullif no uptime is available.{ready_time}nullif noreadyAttimestamp is available.{num_members}{num_commands}