Archived
1
0
Fork 0
This repository has been archived on 2024-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
maki/Maki/DiscordMessage.cs

32 lines
825 B
C#

using Maki.Structures.Messages;
using System;
namespace Maki
{
public class DiscordMessage
{
public readonly ulong Id;
public readonly DateTime Sent;
public readonly DiscordMember Sender;
public readonly DiscordChannel Channel;
private readonly Discord client;
public string Text { get; internal set; }
public DateTime Edited { get; internal set; }
internal DiscordMessage(Discord discord, Message msg, DiscordMember member, DiscordChannel channel)
{
client = discord;
Id = msg.Id;
Sent = msg.Sent;
Text = msg.Content;
Sender = member;
Channel = channel;
}
public DiscordMessage Edit(string text)
{
return this;
}
}
}