Exemplo n.º 1
0
 public CasinoMember(SocketGuildUser user)
 {
     User         = user;
     Audits       = new List <Audit>();
     _playerchips = 4000;
     Balance      = new VIPBalance(this);
 }
Exemplo n.º 2
0
        public CasinoMember(ulong id, VIPBalance balance, List <Audit> audits, List <Loan> loans, List <Award> awards, List <Citation> citations, int _playerChips)
        {
            User    = DiscordBot.Program.CasinoGuild.GetUser(id);
            Balance = balance ?? new VIPBalance(this);
            //Balance.Member = this;
            Audits       = audits;
            Loans        = loans ?? new List <Loan>();
            Awards       = awards ?? new List <Award>();
            Citations    = citations ?? new List <Citation>();
            _playerchips = _playerChips;
            // Commented out because I have VIP checks elsewhere

            /*if(Balance.RemainingBalance >= 200)
             * {
             *  if(!User.HasVIPAbility())
             *  {
             *      if(Balance.RemainingPlayerChips > 0)
             *      {
             *          User.AddRoleAsync(VIP);
             *      } else
             *      {
             *          // high roller
             *          User.AddRoleAsync(HighRollerRole);
             *      }
             *  }
             * } else
             * {
             *  if(User.HasVIPAbility())
             *  {
             *      User.RemoveRolesAsync(new List<IRole> { VIP, HighRollerRole });
             *  }
             * }*/
        }