Beispiel #1
0
        public DiscordGatewayBot(string token)
        {
            this.token = new TokenResponse(true)
            {
                AccessToken = token
            };

            commands = new BotCommands(this.token);
            Guilds   = new BotGuildManager(this.token);
        }
Beispiel #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);
        }