Optional
options: Partial<ClientOptions>Build information
Commit Hash
Commit Timestamp
Git Origin URL
Git Semver
Build Timestamp
Features enabled on this Revolt node
File server service configuration
Whether the service is enabled
URL pointing to the service
hCaptcha configuration
Whether captcha is enabled
Client key used for solving captcha
Whether email verification is enabled
Whether this server is invite only
Proxy service configuration
Whether the service is enabled
URL pointing to the service
Voice server configuration
Whether voice is enabled
URL pointing to the voice API
URL pointing to the voice WebSocket server
Revolt API Version
Web Push VAPID public key
WebSocket URL
Static
prefixedGenerate an MFA ticket for later use.
Accept an invite. (Group DMs not supported yet)
Rest
...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]Optional
context: anyLog in with a username and password.
Returns a response being one of none
, onboard
, or mfa
. Onboarding and MFA both require a response.
Create a new group.
Optional
description?: stringGroup description
Group name
Optional
nsfw?: booleanWhether this group is age-restricted
Array of user IDs to add to the group
Must be friends with these users.
Create a new server.
Optional
description?: stringServer description
Server name
Optional
nsfw?: booleanWhether this server is age-restricted
Edit the client User's profile information.
Optional
avatar?: stringAttachment Id for avatar
Optional
badges?: numberFormat: int32
Bitfield of user badges
Optional
display_New display name
Optional
flags?: numberFormat: int32
Enum of user flags
Optional
profile?: { New user profile data
This is applied as a partial.
Optional
background?: stringAttachment Id for background
Optional
content?: stringText to set as user profile description
Optional
remove?: ("Avatar" | "StatusText" | "StatusPresence" | "ProfileContent" | "ProfileBackground" | "DisplayName")[]Fields to remove from user object
Optional
status?: { New user status
Optional
presence?: "Online" | "Idle" | "Focus" | "Busy" | "Invisible"Current presence option
Optional
text?: stringCustom status text
Calls each of the listeners registered for a given event.
Rest
...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]Return an array listing the events for which the emitter has registered listeners.
Fetch an existing invite.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Log in using an existing session or bot token.
Optional
details: Partial<Omit<Omit<ClientSession, "token">, "type">>Optional
fn: ((...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]) => void)Rest
...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]Optional
context: anyOptional
once: booleanAdd a listener for a given event.
Rest
...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]Optional
context: anyAdd a one-time listener for a given event.
Rest
...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]Optional
context: anyRemove all listeners, or those of the specified event.
Optional
event: keyof ClientEventsRemove the listeners of a given event.
Optional
fn: ((...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]) => void)Rest
...args: ArgumentMap<ClientEvents>[Extract<T, keyof ClientEvents>]Optional
context: anyOptional
once: booleanUpload an attachment to Autumn.
Description
URL pointing to the client serving this node