Create Revolt.js Client
Optionaloptions: Partial<ClientOptions>Optionalconfiguration: {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
ReadonlyaccountReadonlyapiReadonlybotsReadonlychannelsReadonlychannelReadonlychannelReadonlyconnectionReadonlyemojisReadonlyeventsReadonlymessagesReadonlyoptionsReadonlyreadyReadonlyserverReadonlyserversReadonlysessionsReadonlyusersGet authentication header
Current session id
Connect to Revolt
Log in with auth data, creating a new session in the process.
Login data object
Optionalfriendly_name?: null | stringOptionalfriendly_name?: null | stringOptionalmfa_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
Optionalevent: string | symbolUpload a file
Tag
File
OptionaluploadUrl: stringMedia server upload route
StaticlistenerStaticonOptionaloptions: AbortableMethodsStaticonceOptionaloptions: AbortableMethods
Revolt.js Clients