This repository has been archived on 2023-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
discord-bot-shtik/Models/Message.cs

31 lines
877 B
C#
Raw Normal View History

2023-06-01 00:01:28 -04:00
namespace vassago.Models;
using System;
2023-06-01 00:01:28 -04:00
using System.Collections.Generic;
using System.Threading.Tasks;
using Discord.WebSocket;
2023-06-01 00:01:28 -04:00
public class Message
{
2023-06-01 00:01:28 -04:00
public Guid Id { get; set; }
public ulong? ExternalId { get; set; }
public string Content { get; set; }
public bool MentionsMe { get; set; }
public DateTimeOffset Timestamp { get; set; }
public bool ActedOn { get; set; }
///however it came from the protocol.
public string ExternalRepresentation { get; set; }
public IEnumerable<Attachment> Attachments { get; set; }
public User Author { get; set; }
public Channel Channel { get; set; }
public virtual Task Reply(string message)
{
throw new NotImplementedException("derive from me");
}
public virtual Task React(string reaction)
{
throw new NotImplementedException("derive from me");
}
}