예제 #1
0
 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}"
             )
         )
     );
예제 #2
0
 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}"
             )
         )
     );
예제 #3
0
 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"
             )
         )
     );
예제 #4
0
 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"
             )
         )
     );
예제 #5
0
 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}>"
             )
         )
     );
예제 #6
0
 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
             )
         )
     );
예제 #7
0
 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*"
                 )
             )
         );
 }
예제 #8
0
 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
                 )
             )
         );
 }
예제 #9
0
        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
                        )
                    )
                );
        }