-
Environment
Describe the bug To Reproduce $discord->on('ready', function ($discord) {
echo 'Bot is ready!' . PHP_EOL;
$discord->on('message', function ($message, $discord) {
var_dump($message->content);
});
}); Response: string(0) "" Expected behavior Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've found out. Discord updated intents so I needed to generate authorization again with new permission "message content intent" |
Beta Was this translation helpful? Give feedback.
-
If your bot is not verified and can still switch the message content intent in the developers portal, you do not need to update and can stay in DiscordPHP v7 (API v9) until next year/until DiscordPHP v10 (API v10) is released. For any verified Bots that do not have Message Content intent approved or want to take advantage of v10 API, please use version |
Beta Was this translation helpful? Give feedback.
If your bot is not verified and can still switch the message content intent in the developers portal, you do not need to update and can stay in DiscordPHP v7 (API v9) until next year/until DiscordPHP v10 (API v10) is released.
For any verified Bots that do not have Message Content intent approved or want to take advantage of v10 API, please use version
dev-master#7702c55
. Please note this is currently not a stable release version, and already have some breaking change content with the removal of fields/constants.