Events
Last updated
Last updated
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.
OnUserUpdated
OnCurrentUserUpdated
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.
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.
OnReactionBulkRemoved
OnChannelCreated
A server channel has been created and will give a ServerChannel object.
OnChannelUpdated
A cached channel has been updated with new properties and will give an old Channel object, new Channel object and ChannelUpdatedProperties
OnChannelDeleted
A channel has been deleted and will give a Channel object.
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.
OnGroupUserLeft
A user has left a group channel and will give a GroupChannel object and User object.
OnDMChannelOpened
A private channel between another user has been opened or become active again and will give a DMChannel object.
OnServerJoined
OnServerLeft
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.
OnMemberJoined
A user has joined a server and will give a Server object and ServerMember object.
OnMemberLeft
A user has left a server and will give a Server object and ServerMember object.
OnRoleCreated
A new role has been created on a server and will give a Role 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.
OnRoleDeleted
A role has been deleted from a server and will give a Role object.
OnEmojiCreated
OnEmojiDeleted