#Problem hikari python bot discord

1 messages · Page 1 of 1 (latest)

verbal mica
#

Hello, I have a prbl with my bot. I want that when he receive the message "start_signals" he starts to post the signals but I have this error. Please help me.

plucky ferry
#

Event.content can be one in attachment only messages and

#

./tag message content

rigid forgeBOT
#

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:

bot = hikari.GatewayBot( # or lightbulb.BotApp
    "your token",
    intents=hikari.Intents.ALL_UNPRIVILEGED | hikari.Intents.MESSAGE_CONTENT # Add this line
)

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.

verbal mica
#

thanks this work