Ejemplo n.º 1
0
        public DiscordGatewayBot(string token)
        {
            this.token = new TokenResponse(true)
            {
                AccessToken = token
            };

            commands = new BotCommands(this.token);
            Guilds   = new BotGuildManager(this.token);
        }
Ejemplo n.º 2
0
        public DiscordGatewayBot(TokenResponse token)
        {
            this.token = token;
            if (token.Type != TokenType.Bot)
            {
                token.Type = TokenType.Bot;
            }

            commands = new BotCommands(this.token);
            Guilds   = new BotGuildManager(this.token);
        }