Example #1
0
        public async Task ClearUserBalance(SocketGuildUser user)
        {
            if (!Utilities.UserHasPermission(Context.User as SocketGuildUser, GuildPermission.Administrator))
            {
                return;
            }

            var handler = new UserAccounts();

            handler.ClearUserAccountBalance(user.Id);
            await Context.Channel.SendMessageAsync($"Cleared **{user.Username}**'s balance!");
        }