2018-12-05 03:41:42 +00:00
|
|
|
|
using Discord.WebSocket;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using Kerobot.Services.CommonFunctions;
|
|
|
|
|
|
|
|
|
|
namespace Kerobot
|
|
|
|
|
{
|
|
|
|
|
partial class Kerobot
|
|
|
|
|
{
|
|
|
|
|
private CommonFunctionsService _svcCommonFunctions;
|
|
|
|
|
|
2019-04-24 20:43:46 +00:00
|
|
|
|
public enum RemovalType { None, Ban, Kick }
|
2018-12-05 03:41:42 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// See <see cref="ModuleBase.BanAsync(SocketGuild, string, ulong, int, string, string)"/>
|
|
|
|
|
/// and related methods.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Task<BanKickResult> BanOrKickAsync(RemovalType t, SocketGuild guild, string source,
|
2019-04-24 20:43:46 +00:00
|
|
|
|
ulong target, int banPurgeDays, string logReason, bool sendDMToTarget)
|
|
|
|
|
=> _svcCommonFunctions.BanOrKickAsync(t, guild, source, target, banPurgeDays, logReason, sendDMToTarget);
|
2018-12-05 03:41:42 +00:00
|
|
|
|
}
|
|
|
|
|
}
|