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.

OnUserUpdated

A cached user has been updated with new properties and will give an old User object and new User object to compare.

OnCurrentUserUpdated

The client user/bot has been updated with new properties and will give an old SelfUser object and new SelfUser object to compare.

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.

OnReactionBulkRemoved

All reactions for a specific emoji have been removed from a message and will give a Emoji object, Channel object and Downloadable<string, Message> object.

Channels

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.

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.

OnGroupUserLeft

A user has left 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

OnServerJoined

The current user/bot has joined a server and will give a Server object and SelfUser object.

OnServerLeft

The current user/bot has left a server and will give a Server object and SelfUser object.

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

A new emoji has been created on a server and will give a Server object and Emoji object.

OnEmojiDeleted

A emoji has been deleted from a server and will give a Server object and Emoji object.

Last updated