|
@@ -172,6 +172,10 @@ namespace Discord.Rest |
|
|
//Bans |
|
|
//Bans |
|
|
public Task<IReadOnlyCollection<RestBan>> GetBansAsync(RequestOptions options = null) |
|
|
public Task<IReadOnlyCollection<RestBan>> GetBansAsync(RequestOptions options = null) |
|
|
=> GuildHelper.GetBansAsync(this, Discord, options); |
|
|
=> GuildHelper.GetBansAsync(this, Discord, options); |
|
|
|
|
|
public Task<RestBan> GetBanAsync(IUser user, RequestOptions options = null) |
|
|
|
|
|
=> GuildHelper.GetBanAsync(this, Discord, user.Id, options); |
|
|
|
|
|
public Task<RestBan> GetBanAsync(ulong userId, RequestOptions options = null) |
|
|
|
|
|
=> GuildHelper.GetBanAsync(this, Discord, userId, options); |
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
public Task AddBanAsync(IUser user, int pruneDays = 0, string reason = null, RequestOptions options = null) |
|
|
public Task AddBanAsync(IUser user, int pruneDays = 0, string reason = null, RequestOptions options = null) |
|
@@ -344,6 +348,12 @@ namespace Discord.Rest |
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
async Task<IReadOnlyCollection<IBan>> IGuild.GetBansAsync(RequestOptions options) |
|
|
async Task<IReadOnlyCollection<IBan>> IGuild.GetBansAsync(RequestOptions options) |
|
|
=> await GetBansAsync(options).ConfigureAwait(false); |
|
|
=> await GetBansAsync(options).ConfigureAwait(false); |
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
|
|
async Task<IBan> IGuild.GetBanAsync(IUser user, RequestOptions options) |
|
|
|
|
|
=> await GetBanAsync(user, options).ConfigureAwait(false); |
|
|
|
|
|
/// <inheritdoc/> |
|
|
|
|
|
async Task<IBan> IGuild.GetBanAsync(ulong userId, RequestOptions options) |
|
|
|
|
|
=> await GetBanAsync(userId, options).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
/// <inheritdoc /> |
|
|
/// <inheritdoc /> |
|
|
async Task<IReadOnlyCollection<IGuildChannel>> IGuild.GetChannelsAsync(CacheMode mode, RequestOptions options) |
|
|
async Task<IReadOnlyCollection<IGuildChannel>> IGuild.GetChannelsAsync(CacheMode mode, RequestOptions options) |
|
|