#Discord Bot Client has 0 Guilds

1 messages · Page 1 of 1 (latest)

quiet schooner
#

I'm initializing a bot as follows:

        DiscordSocketConfig socketConfig = new()
        {
            GatewayIntents = GatewayIntents.AllUnprivileged | GatewayIntents.GuildMembers,
            AlwaysDownloadUsers = true,
        };
        await using DiscordSocketClient client = new DiscordSocketClient(socketConfig);

        client.Ready += Client_Ready;
        client.Log += Log;

        await client.LoginAsync(TokenType.Bot, _botToken);
        await client.StartAsync();

at the end of this, client has 0 guilds on it. Shouldn't I be retrieving all of the guilds I'm in? It should be at least 1, my test guild. Am I doing something wrong?

quiet schooner
#

this worked, thank you!