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.

IDiscordClient.cs 2.0 kB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Threading.Tasks;
  5. namespace Discord
  6. {
  7. public interface IDiscordClient : IDisposable
  8. {
  9. ConnectionState ConnectionState { get; }
  10. ISelfUser CurrentUser { get; }
  11. TokenType TokenType { get; }
  12. Task StartAsync();
  13. Task StopAsync();
  14. Task<IApplication> GetApplicationInfoAsync(RequestOptions options = null);
  15. Task<IChannel> GetChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  16. Task<IReadOnlyCollection<IPrivateChannel>> GetPrivateChannelsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  17. Task<IReadOnlyCollection<IDMChannel>> GetDMChannelsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  18. Task<IReadOnlyCollection<IGroupChannel>> GetGroupChannelsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  19. Task<IReadOnlyCollection<IConnection>> GetConnectionsAsync(RequestOptions options = null);
  20. Task<IGuild> GetGuildAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  21. Task<IReadOnlyCollection<IGuild>> GetGuildsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  22. Task<IGuild> CreateGuildAsync(string name, IVoiceRegion region, Stream jpegIcon = null, RequestOptions options = null);
  23. Task<IInvite> GetInviteAsync(string inviteId, RequestOptions options = null);
  24. Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
  25. Task<IUser> GetUserAsync(string username, string discriminator, RequestOptions options = null);
  26. Task<IReadOnlyCollection<IVoiceRegion>> GetVoiceRegionsAsync(RequestOptions options = null);
  27. Task<IVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null);
  28. }
  29. }