Added RequestOptions to RestClient methods. Added guild summary paging.
This commit is contained in:
@@ -14,25 +14,25 @@ namespace Discord
|
||||
Task StartAsync();
|
||||
Task StopAsync();
|
||||
|
||||
Task<IApplication> GetApplicationInfoAsync();
|
||||
Task<IApplication> GetApplicationInfoAsync(RequestOptions options = null);
|
||||
|
||||
Task<IChannel> GetChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IReadOnlyCollection<IPrivateChannel>> GetPrivateChannelsAsync(CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IReadOnlyCollection<IDMChannel>> GetDMChannelsAsync(CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IReadOnlyCollection<IGroupChannel>> GetGroupChannelsAsync(CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IChannel> GetChannelAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
Task<IReadOnlyCollection<IPrivateChannel>> GetPrivateChannelsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
Task<IReadOnlyCollection<IDMChannel>> GetDMChannelsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
Task<IReadOnlyCollection<IGroupChannel>> GetGroupChannelsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
|
||||
Task<IReadOnlyCollection<IConnection>> GetConnectionsAsync();
|
||||
Task<IReadOnlyCollection<IConnection>> GetConnectionsAsync(RequestOptions options = null);
|
||||
|
||||
Task<IGuild> GetGuildAsync(ulong id, CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IReadOnlyCollection<IGuild>> GetGuildsAsync(CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IGuild> CreateGuildAsync(string name, IVoiceRegion region, Stream jpegIcon = null);
|
||||
Task<IGuild> GetGuildAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
Task<IReadOnlyCollection<IGuild>> GetGuildsAsync(CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
Task<IGuild> CreateGuildAsync(string name, IVoiceRegion region, Stream jpegIcon = null, RequestOptions options = null);
|
||||
|
||||
Task<IInvite> GetInviteAsync(string inviteId);
|
||||
Task<IInvite> GetInviteAsync(string inviteId, RequestOptions options = null);
|
||||
|
||||
Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload);
|
||||
Task<IUser> GetUserAsync(string username, string discriminator);
|
||||
Task<IUser> GetUserAsync(ulong id, CacheMode mode = CacheMode.AllowDownload, RequestOptions options = null);
|
||||
Task<IUser> GetUserAsync(string username, string discriminator, RequestOptions options = null);
|
||||
|
||||
Task<IReadOnlyCollection<IVoiceRegion>> GetVoiceRegionsAsync();
|
||||
Task<IVoiceRegion> GetVoiceRegionAsync(string id);
|
||||
Task<IReadOnlyCollection<IVoiceRegion>> GetVoiceRegionsAsync(RequestOptions options = null);
|
||||
Task<IVoiceRegion> GetVoiceRegionAsync(string id, RequestOptions options = null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user