⚡Events
All events require WebSocket mode except for OnStarted which can be used in Http mode.
Client
OnStarted
The client has connected to the API and will give a SelfUser object.
This can be used in Http mode.
OnConnected
The client has successfully connected to Revolt.
OnReady
The client is ready to use and will give a SelfUser object with the logged in user/bot account to use.
OnWebSocketError
The client has encountered an issue and will give a RevoltClient and SocketError object with the specific error data.
A Downloadable<> object can be used to get the Id of the specific object like User/Channel/Message and you can use the GetOrDownloadAsync() method to get the object from cache or fetch from the Revolt API if it's still available.
Messages
OnMessageRecieved
A message has been sent from a user and will give a Message object for content, author and other properties to use.
OnMessageUpdated
A message has been updated and will give a Downloadable<string, Message> and MessageUpdatedProperties with the properties that have been updated and Message id.
OnMessageDeleted
A message has been deleted and will give a Channel object and Message id string of the deleted message.
OnMessagesBulkDeleted
Multiple messages have been deleted and will give a Channel object and Message id[ ] list of the deleted messages.
Reactions
OnReactionAdded
A reaction has been added to a message and will give a Emoji object ServerChannel object Downloadable<string, ServerMember> object and Downloadable<string, Message> object.
OnReactionRemoved
A reaction has been removed from a message and will give a Emoji object ServerChannel object Downloadable<string, ServerMember> object and Downloadable<string, Message> object.
Channels
OnChannelUpdated
A cached channel has been updated with new properties and will give an old Channel object, new Channel object and ChannelUpdatedProperties
Groups
OnGroupJoined
The current user/bot account has joined a group channel and will give a GroupChannel object and SelfUser object.
OnGroupLeft
The current user/bot account has left a group channel and will give a GroupChannel object and SelfUser object.
OnGroupUserJoined
A user has joined a group channel and will give a GroupChannel object and User object.
DMs
OnDMChannelOpened
A private channel between another user has been opened or become active again and will give a DMChannel object.
Servers
OnServerUpdated
A cached Server has been updated with new properties and will give an old Server object, new Server object to compare and ServerUpdatedProperties object.
OnRoleUpdated
A role has been updated with new properties in a server and will give an old Role object, new Role object and RoleUpdatedProperties object.
Last updated