Beispiel #1
0
        public async Task ApproveUser([Name("User To Approve"), Summary("The mention/name/id of the user you want to approve"), Remainder] SocketGuildUser toApprove)
        {
            var current = _service.GetApproved(Context.Guild.Id);

            if (current.Contains(toApprove.Id))
            {
                await _message.SendMessageAsync(Context, "This user is already approved");

                return;
            }
            _service.AddApproved(Context, toApprove.Id);
            await _message.SendMessageAsync(Context, "User has been approved");
        }