Updated reference channel entities

This commit is contained in:
RogueException
2016-02-26 05:22:01 -04:00
parent d1cae981da
commit 0759f957d8
23 changed files with 298 additions and 162 deletions

View File

@@ -1,17 +1,22 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Discord
{
public interface IChannel : IModel<ulong>
public interface IChannel : IEntity<ulong>
{
DiscordClient Client { get; }
/// <summary> Gets the type flags for this channel. </summary>
ChannelType Type { get; }
/// <summary> Gets whether this is a text channel. </summary>
bool IsText { get; }
/// <summary> Gets whether this is a voice channel. </summary>
bool IsVoice { get; }
/// <summary> Gets whether this is a private channel. </summary>
bool IsPrivate { get; }
/// <summary> Gets whether this is a public channel. </summary>
bool IsPublic { get; }
IEnumerable<User> Users { get; }
/// <summary> Gets a collection of all users in this channel. </summary>
Task<IEnumerable<User>> GetUsers();
}
}