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
  1. Class Structure

Messages

PreviousPermissionsNextMessage Properties

Last updated 1 year ago

Message

string Id

DateTime CreatedAt

string ChannelId

? Channel

string? AuthorId

? Author

string? ServerId

? Server

Type

MessageType
public enum MessageType
{
    User,
    Bot,
    System,
    Webhook
}
MessageUpdatedProperties

string Id

DateTime CreatedAt

Optional<string> Content

Optional<[ ]> Embeds

DateTime EditedAt

string ChannelId

? Channel

string? ServerId

? Server

A base object can be casted to object or object depending on the type of the message. ( as ) and make sure to check if it's null

UserMessage

string? Content

IReadOnlyList<> Attachments

IReadOnlyList<string> Mentions

IReadOnlyList<string> Replies

DateTimeOffset? EditedAt

IReadOnlyList<> Embeds

IReadOnlyDictionary<, [ ]> Reactions

? Masquerade

SystemMessage

SystemType Content

The content needs to be casted with the specific object with the values below. (Content as SystemUserAdded)

SystemType

Various different system messages types and proprties from Message.Content

SystemUnknown

SystemText

string Text

SystemUserAdded

string Id

string By

SystemUserRemoved

string Id

SystemUserJoined

string By

string Id

SystemUserLeft

string Id

SystemUserKicked

string Id

SystemUserBanned

string Id

SystemChannelRenamed

string Name

string By

SystemChannelDescriptionChanged

string By

SystemChannelIconChanged

string By

SystemChannelOwnershipChanged

string From

string To

💬
MessageType
Message
UserMessage
SystemMessage
Message
UserMessage
SystemType
Emoji
MessageEmbed
Attachment
MessageEmbed
MessageMasquerade
Channel
Channel
Server
Server
User
User