#All messages returning None

1 messages · Page 1 of 1 (latest)

austere copper
#

./tag message content

slate inletBOT
#

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 = hikari.GatewayBot(
    "your token",
    intents=hikari.Intents.ALL_UNPRIVILEGED  # Add this
    | hikari.Intents.MESSAGE_CONTENT,        # 
)

You should now receive guild message contents. :)

lean crag
#

I've just double checked, That intent is enabled

austere copper
#

In the bot too?