[Feature] Guild bans with seconds prune period (#2898)
* rip legacy code * rename so no conflicts * eh renamed wrong thing
This commit is contained in:
@@ -716,6 +716,13 @@ namespace Discord.WebSocket
|
||||
public Task AddBanAsync(ulong userId, int pruneDays = 0, string reason = null, RequestOptions options = null)
|
||||
=> GuildHelper.AddBanAsync(this, Discord, userId, pruneDays, reason, options);
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task BanUserAsync(IUser user, uint pruneSeconds = 0, RequestOptions options = null)
|
||||
=> GuildHelper.AddBanAsync(this, Discord, user.Id, pruneSeconds, options);
|
||||
/// <inheritdoc />
|
||||
public Task BanUserAsync(ulong userId, uint pruneSeconds = 0, RequestOptions options = null)
|
||||
=> GuildHelper.AddBanAsync(this, Discord, userId, pruneSeconds, options);
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task RemoveBanAsync(IUser user, RequestOptions options = null)
|
||||
=> GuildHelper.RemoveBanAsync(this, Discord, user.Id, options);
|
||||
|
||||
Reference in New Issue
Block a user