public static async Task SendToModLogAsync(SocketGuildUser invoker, SocketGuildUser target, string warning) => await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(12, 156, 24), $"Remove Warning {warning} from User", $"{target.Mention}" ) ) );
public static async Task SendToModLogAsync(SocketGuildUser invoker, SocketGuildUser target) => await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(12, 156, 24), "Unmute User", $"{target.Mention}" ) ) );
public static async Task SendToModLogAsync(SocketGuildUser invoker, bool isEnabled) => await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, isEnabled ? new Color(206, 15, 65) : new Color(12, 156, 24), "Raid Mode", isEnabled ? "Enabled" : "Disabled" ) ) );
public static async Task SendToModLogAsync(SocketGuildUser invoker) => await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(255, 255, 255), "Verify All Users", "Running" ) ) );
public static async Task SendToModLogAsync(SocketGuildUser invoker, ulong?target) => await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(12, 156, 24), "Unban User", $"<@{target}>" ) ) );
public static async Task SendToModLogAsync(SocketGuildUser invoker, SocketGuildUser target, string reason) => await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(0, 0, 0), "Unverify User", $"{target.Mention}" ), new ModLogBase.ModLogInfo.ReasonInfo( reason ) ) );
public static async Task SendToModLogAsync(SocketGuildUser invoker, SocketGuildUser target, string timeout, string reason) { bool isTime = double.TryParse(timeout, out double time); await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(255, 61, 24), $"Arrest User{(isTime ? $" for {time} {(time == 1 ? "minute" : "minutes")}" : "")}", $"{target.Mention}" ), new ModLogBase.ModLogInfo.ReasonInfo( reason ?? "*No reason necessary*" ) ) ); }
public static async Task SendToModLogAsync(SocketGuildUser invoker, ulong?target, string timeout, string reason) { bool isTime = double.TryParse(timeout, out double time); await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(130, 0, 0), $"Ban User{(isTime ? $" for {time} {(time == 1 ? "day" : "days")}" : "")}", $"<@{target}>" ), new ModLogBase.ModLogInfo.ReasonInfo( reason ) ) ); }
public static async Task SendToModLogAsync(SocketGuildUser invoker, SocketGuildUser target, string timeout, string reason) { bool isTime = double.TryParse(timeout, out double time); bool isMinutes = time < 1; if (time < 1) { time *= 60; } await ModLogBase.SendToModLogAsync( new ModLogBase.ModLogInfo( new ModLogBase.ModLogInfo.RequiredInfo( invoker, new Color(255, 213, 31), $"Warn User{(isTime ? $" for {time} {(time == 1 ? isMinutes ? "minute" : "hour" : isMinutes ? "minutes" : "hours")}" : "")}", $"{target.Mention}" ), new ModLogBase.ModLogInfo.ReasonInfo( reason ) ) ); }