using System; using System.Collections.Generic; namespace DiscordChatExporter.Core.Models { // https://discordapp.com/developers/docs/resources/channel#message-object public class Message { public string Id { get; } public string ChannelId { get; } public MessageType Type { get; } public User Author { get; } public DateTimeOffset Timestamp { get; } public DateTimeOffset? EditedTimestamp { get; } public string Content { get; } public IReadOnlyList Attachments { get; } public IReadOnlyList Embeds { get; } public IReadOnlyList Reactions { get; } public IReadOnlyList MentionedUsers { get; } public Message(string id, string channelId, MessageType type, User author, DateTimeOffset timestamp, DateTimeOffset? editedTimestamp, string content, IReadOnlyList attachments, IReadOnlyList embeds, IReadOnlyList reactions, IReadOnlyList mentionedUsers) { Id = id; ChannelId = channelId; Type = type; Author = author; Timestamp = timestamp; EditedTimestamp = editedTimestamp; Content = content; Attachments = attachments; Embeds = embeds; Reactions = reactions; MentionedUsers = mentionedUsers; } public override string ToString() => Content; } }