Closed Stay1444 closed 2 months ago
You do not have the associated intents. https://docs.rs/serenity/latest/serenity/model/gateway/struct.GatewayIntents.html#associatedconstant.GUILDS
That was it, i thought GatewayIntents::privileged() included that, thank you.
privileged only enabled the intents that require Discord to whitelist the bot (when your bot is verified), non_privileged does the opposite, If you are unsure what intents do what, everything is documented on that page.
You can also see Discord's documentation directly.
I'm trying to receive the GuildCreate and GuildDelete events to do some stuff when the bot joins or leaves a guild. I'm currently just seeing which events come through, like
dbg!(&event)
, and I see stuff likeReady
,ShardReady
andGuildMemberRemoved
when the bot exists a guild, but I'm not getting theGuildCreate
andGuildDelete
ones. (I'm obviously adding the bot to a new server and kicking it)Any ideas?