33 lines
825 B
C#
33 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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|