RevoltSharp
  • 🏠Info
  • GitHub
  • 📋Changelog
  • Commands
    • 💻Command Handler
      • 📋Changelog
      • Guide
  • Guides
    • 📘Guides
      • Create Client
      • User Account
      • Self-hosted Revolt
      • Uploading Files
      • Sending Embeds
      • Async Events
      • Custom Requests
      • Cloudflare Under Attack Mode
  • Client Structure
    • ⚙️RevoltClient
    • 🌐Rest Client
    • 🔌Websocket Client
    • 🛡️Instance Admin Client
    • ⚡Events
    • ⛓️Extensions
  • Class Structure
    • 🎭Users & Members
    • 🏨Servers
    • #️⃣Channels
    • 🛡️Permissions
    • 💬Messages
    • 🗯️Message Properties
    • 🙂Emojis
    • 🎲Misc
Powered by GitBook
On this page
  • Client
  • Messages
  • Reactions
  • Channels
  • Groups
  • DMs
  • Servers
  1. Client Structure

Events

PreviousInstance Admin ClientNextExtensions

Last updated 1 year ago

All events require WebSocket mode except for OnStarted which can be used in Http mode.

Client

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

Reactions

Channels

Groups

DMs

Servers

⚡

OnStarted

This can be used in Http mode.

OnConnected

The client has successfully connected to Revolt.

OnReady

OnWebSocketError

OnUserUpdated

OnCurrentUserUpdated

OnMessageRecieved

OnMessageUpdated

OnMessageDeleted

OnMessagesBulkDeleted

OnReactionAdded

OnReactionRemoved

OnReactionBulkRemoved

OnChannelCreated

OnChannelUpdated

OnChannelDeleted

OnGroupJoined

OnGroupLeft

OnGroupUserJoined

OnGroupUserLeft

OnDMChannelOpened

OnServerJoined

OnServerLeft

OnServerUpdated

OnMemberJoined

OnMemberLeft

OnRoleCreated

OnRoleUpdated

OnRoleDeleted

OnEmojiCreated

OnEmojiDeleted

The client has connected to the API and will give a object.

The client is ready to use and will give a object with the logged in user/bot account to use.

The client has encountered an issue and will give a and object with the specific error data.

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

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

A message has been sent from a user and will give a object for content, author and other properties to use.

A message has been updated and will give a Downloadable<string, > and with the properties that have been updated and Message id.

A message has been deleted and will give a object and Message id string of the deleted message.

Multiple messages have been deleted and will give a object and Message id[ ] list of the deleted messages.

A reaction has been added to a message and will give a object object Downloadable<string, > object and Downloadable<string, > object.

A reaction has been removed from a message and will give a object object Downloadable<string, > object and Downloadable<string, > object.

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

A server channel has been created and will give a object.

A cached channel has been updated with new properties and will give an old object, new object and

A channel has been deleted and will give a object.

The current user/bot account has joined a group channel and will give a object and object.

The current user/bot account has left a group channel and will give a object and object.

A user has joined a group channel and will give a object and object.

A user has left a group channel and will give a object and object.

A private channel between another user has been opened or become active again and will give a object.

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

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

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

A user has joined a server and will give a object and object.

A user has left a server and will give a object and object.

A new role has been created on a server and will give a object.

A role has been updated with new properties in a server and will give an old object, new object and object.

A role has been deleted from a server and will give a object.

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

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

Channel
Channel
ServerChannel
Channel
Channel
ChannelUpdatedProperties
Channel
DMChannel
ServerChannel
Emoji
ServerChannel
Emoji
Channel
Emoji
GroupChannel
GroupChannel
GroupChannel
GroupChannel
Emoji
Emoji
Message
Message
MessageUpdatedProperties
Message
Message
Message
SelfUser
SelfUser
User
User
SelfUser
SelfUser
ServerMember
ServerMember
SelfUser
SelfUser
User
User
SelfUser
SelfUser
ServerMember
ServerMember
Server
Server
Server
Server
ServerUpdatedProperties
Server
Server
Role
Role
Role
RoleUpdatedProperties
Role
Server
Server
RevoltClient
SocketError