Why is some information about my messages from MessageCreateEvent unavailable?
You may 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. (check the attached screenshot: https://i.imgur.com/8Ps9Boi.png)
Secondly, in your bot's code, add the highlighted lines:
[2;31mbot[0m [2;33m=[0m [2;36m[4;36mhikari[0m[2;36m[0m[4;2m.[0m[2;34m[4;34mGatewayBot[0m[2;34m[0m[2;33m( [2;30m# or [1;30m[4;30mlightbulb[0m[1;30m[0m[2;30m[1;30m[4;30m.[0m[1;30m[0m[2;30m[1;30m[4;30mBotApp[0m[1;30m[0m[2;30m[0m[2;33m[0m
[2;32m"your token"[0m,
[2;35m[2;40mintents[0m[2;35m[0m[2;33m[2;40m=[0m[2;33m[0m[2;36m[2;40mhikari[0m[2;36m[0m[2;40m.[0m[2;34m[2;40mIntents[0m[2;34m[0m[2;40m.[0m[2;34m[2;40mALL_UNPRIVILEGED[0m[2;34m[0m[2;40m | [0m[2;36m[2;40mhikari[0m[2;36m[0m[2;40m.[0m[2;34m[2;40mIntents[0m[2;34m[0m[2;40m.[0m[2;34m[2;40mMESSAGE_CONTENT[0m[2;34m[0m [2;30m# [1;30mAdd this line[0m[2;30m[0m
[2;33m)[0m
You should now receive all information about such messages. :)
Note: You will still receive this information for messages in which the bot is pinged and for any message in DMs, regardless of the intent.