You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

IChannel.cs 593 B

123456789101112131415161718
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. namespace Discord
  4. {
  5. public interface IChannel : IEntity<ulong>
  6. {
  7. /// <summary> Gets the type flags for this channel. </summary>
  8. ChannelType Type { get; }
  9. /// <summary> Gets the name of this channel. </summary>
  10. string Name { get; }
  11. /// <summary> Gets a user in this channel with the given id. </summary>
  12. Task<IUser> GetUser(ulong id);
  13. /// <summary> Gets a collection of all users in this channel. </summary>
  14. Task<IEnumerable<IUser>> GetUsers();
  15. }
  16. }