Exemplo n.º 1
0
 private async Task Init()
 {
     // Now the client is lunched.
     Client = new DDBLBotClient()
     {
         ApiKey = _config.ApiKey,
         BotId  = _discord.Id
     };
     await UpdateStats();
 }
Exemplo n.º 2
0
        public async Task GetSelfBot()
        {
            var client = new DDBLBotClient()
            {
                BotId  = 491673480006205461,
                ApiKey = _config.ApiKey,
            };
            await client.GetSelfUserAsync();

            Assert.Pass();
        }
Exemplo n.º 3
0
        public async Task GetBotWithAuth()
        {
            var client = new DDBLBotClient()
            {
                BotId  = 491673480006205461,
                ApiKey = _config.ApiKey,
            };
            await client.GetBotAsync(491673480006205461);

            Assert.Pass();
        }