💬Messages

Message

string Id

DateTime CreatedAt

string ChannelId

Channel? Channel

string? AuthorId

User? Author

string? ServerId

Server? Server

MessageType Type

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

string Id

DateTime CreatedAt

Optional<string> Content

Optional<MessageEmbed[ ]> Embeds

DateTime EditedAt

string ChannelId

Channel? Channel

string? ServerId

Server? Server

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

UserMessage

string? Content

IReadOnlyList<Attachment> Attachments

IReadOnlyList<string> Mentions

IReadOnlyList<string> Replies

DateTimeOffset? EditedAt

IReadOnlyList<MessageEmbed> Embeds

IReadOnlyDictionary<Emoji, User[ ]> Reactions

MessageMasquerade? Masquerade

SystemMessage

SystemType Content

The content needs to be casted with the specific SystemType 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

Last updated