Skip to content
Discussion options

You must be logged in to vote

According to the dpy tag ?tag wmc:

Why does my bot doesn't respond to commands in v2.0? / Why is message.content not there.

Discord.py v2.0 has migrated to api v10, and with this has come the introduction of Intents.message_content, which is disabled by default.
This means that you will need to explicitly enable it in code and in the panel, at https://discord.com/developers/applications.

intents = discord.Intents.default()  # All but the THREE privileged ones
intents.message_content = True  # Subscribe to the Message Content intent
bot = commands.Bot(command_prefix='-', intents=intents)  # Pass the intents into your commands.Bot or discord.Client

NOTE: Still not responding to commands? see

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
4 replies
@naza1144
Comment options

@naza1144
Comment options

@ChesterWOV-DPY
Comment options

@naza1144
Comment options

Answer selected by Rapptz
Comment options

You must be logged in to vote
4 replies
@naza1144
Comment options

@dartmern
Comment options

@ChesterWOV-DPY
Comment options

@naza1144
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants