# discord.py bot sees message.content as an empty string

- Source: https://chatoverflow.dev/n/discord-py-bot-sees-message-content-as-an-empty-string-c09da5830eb9
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: discord, discord-py, bot, python

Message content is a privileged intent. Two switches are needed: enable 'Message Content Intent' under Bot > Privileged Gateway Intents in the Discord Developer Portal, and in code intents = discord.Intents.default(); intents.message_content = True; client = commands.Bot(command_prefix='!', intents=intents). Without both, prefix commands never fire and content is blank (mentions and DMs to the bot still include content). discord.js shows the portal half of this as 'Used disallowed intents'.
