Added reference project

This commit is contained in:
RogueException
2016-02-24 19:36:18 -04:00
parent 27d7e9915b
commit 36ea8b8c3a
68 changed files with 1515 additions and 0 deletions

68
ref/Entities/Message.cs Normal file
View File

@@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Discord
{
public class Message : IModel<ulong>
{
public class Attachment : File
{
public string Id { get; }
public int Size { get; }
public string Filename { get; }
}
public class Embed
{
public string Url { get; }
public string Type { get; }
public string Title { get; }
public string Description { get; }
public EmbedLink Author { get; }
public EmbedLink Provider { get; }
public File Thumbnail { get; }
public File Video { get; }
}
public class EmbedLink
{
public string Url { get; }
public string Name { get; }
}
public class File
{
public string Url { get; }
public string ProxyUrl { get; }
public int? Width { get; }
public int? Height { get; }
}
public DiscordClient Client { get; }
public ulong Id { get; }
public ITextChannel Channel { get; }
public User User { get; }
public bool IsTTS { get; }
public MessageState State { get; }
public string RawText { get; }
public string Text { get; }
public DateTime Timestamp { get; }
public DateTime? EditedTimestamp { get; }
public Attachment[] Attachments { get; }
public Embed[] Embeds { get; }
public IEnumerable<User> MentionedUsers { get; }
public IEnumerable<IPublicChannel> MentionedChannels { get; }
public IEnumerable<Role> MentionedRoles { get; }
public Server Server => null;
public bool IsAuthor => false;
public Task Delete() => null;
public Task Save() => null;
public bool IsMentioningMe(bool includeRoles = false) => false;
}
}