Create Revolt.js Client
Optional
options: Partial<ClientOptions>Optional
configuration: {Protected
Readonly
[brandThis field doesn't actually exist, it's just a way to make TS properly infer the events from classes that extend AsyncEventEmitter
Readonly
accountReadonly
apiReadonly
botsReadonly
channelsReadonly
channelReadonly
channelReadonly
connectionReadonly
emojisReadonly
eventsReadonly
messagesReadonly
optionsReadonly
readyReadonly
serverReadonly
serversReadonly
sessionsReadonly
usersGet authentication header
Current session id
Connect to Revolt
Log in with auth data, creating a new session in the process.
Login data object
Optional
friendly_name?: null | stringOptional
friendly_name?: null | stringOptional
mfa_response?: null | { password: string } | { recovery_code: string } | { totp_code: string }An on-boarding function if on-boarding is required, undefined otherwise
Log in as a bot
Bot token
Prepare a markdown-based message to be displayed to the user as plain text.
Source markdown text
Modified plain text
Proxy a file through January.
URL to proxy
Proxied media URL
Optional
event: string | symbolStatic
listenerStatic
onOptional
options: AbortableMethodsStatic
onceOptional
options: AbortableMethods
Revolt.js Clients