#Getting a Guild by its ID
1 messages · Page 1 of 1 (latest)
- check the id
- make sure you have
Guildsintent enabled
- with a debugger view check
Guildsproperty ofDiscordSocketClient
- make sure you do all of this after client is ready
without Guilds intent discord doesn't send guilds to the client on startup, so it has no idea what guilds it is in => returns null
also, Guilds intent is enabled by default & is part of All & AllUnpriviliged intent "groups"
await
Or do you mean you send the command before the client could download the guilds?