Esempio n. 1
0
        public async Task Reporter([Summary("The user who you're reporting. (@ them)")] SocketUser reportedUser, [Summary("The reason you're reporting them.")][Remainder] string reason)
        {
            ISocketMessageChannel channel = (ISocketMessageChannel)Context.Guild.GetChannel(514112072326578207);
            var requestingUser            = (SocketGuildUser)Context.User;

            if (UtilService.IsOfficer(requestingUser.Roles))
            {
                UserAccounts.AccountUpdate(reportedUser, "1", UserAccounts.UpdateType.AdminReport);
            }
            else
            {
                UserAccounts.AccountUpdate(reportedUser, "1", UserAccounts.UpdateType.UserReport);
            }
            UserAccounts.AccountUpdate(Context.User, "1", UserAccounts.UpdateType.ReportMade);
            await channel.SendMessageAsync("", false, UtilService.Report(reportedUser, Context.User, (SocketChannel)Context.Channel, reason));
        }
        public async Task MissedRaid(SocketUser user, [Remainder] string reason = "")
        {
            ISocketMessageChannel channel = (ISocketMessageChannel)Context.Guild.GetChannel(514112072326578207);

            if (String.IsNullOrEmpty(reason))
            {
                UserAccounts.AccountUpdate(user, "1", UserAccounts.UpdateType.MissedRaidNoReason);
                await channel.SendMessageAsync("", false, UtilService.Report(Context.User, user, (SocketChannel)Context.Channel, $"**Missed Raid**\n\n**Reason Given**: **__NONE__**"));
                await ReplyAsync($"Account Updated for {user.Username}");
            }
            else
            {
                UserAccounts.AccountUpdate(user, "1", UserAccounts.UpdateType.MissedRaidWithReason);
                await channel.SendMessageAsync("", false, UtilService.Report(Context.User, user, (SocketChannel)Context.Channel, $"**Missed Raid**\n\n**Reason Given**: {reason}"));
                await ReplyAsync($"Account Updated for {user.Username}");
            }
        }