#All messages returning None
1 messages · Page 1 of 1 (latest)
Why are my messages from GuildMessageCreateEvent showing up as None?
You have not enabled the Message Content Intent. This had been a thing for bots from August 31st, 2022 onward. For more info, refer to https://support-dev.discord.com/hc/en-us/articles/4404772028055
Firstly, go to your discord developer portal. In your bot application, in the bot section, tick this to be on. (attached image: https://i.imgur.com/8Ps9Boi.png)
Secondly, in your bot's code, add the highlighted lines:
bot [2;31m=[0m [2;34mhikari[0m.[2;33mGatewayBot[0m(
[2;32m"your token"[0m,
[2;35mintents[0m[2;31m=[0m[2;34mhikari[0m.[2;33mIntents[0m.[2;36mALL_UNPRIVILEGED [2;40m# Add this[0m[2;36m[0m
[2;31m|[0m [2;34mhikari[0m.[2;33mIntents[0m.[2;36mMESSAGE_CONTENT[2;31m,[0m[2;36m [2;40m# [0m[2;36m[0m
)
You should now receive guild message contents. :)
I've just double checked, That intent is enabled
In the bot too?