예제 #1
0
        public UserHandler(DiscordSocketClient client, ConfigRepo configRepo, BanRepo banRepo)
        {
            this.banRepo    = banRepo;
            this.configRepo = configRepo;
            this.client     = client;

            client.UserJoined += UserJoined;
            client.UserLeft   += UserLeft;
            client.UserBanned += UserBanned;
        }
예제 #2
0
 public BanHandler(ConfigRepo configRepo, BanRepo banRepo, DiscordSocketClient client)
 {
     this.client     = client;
     this.banRepo    = banRepo;
     this.configRepo = configRepo;
 }