From ec9089cf0ae45fb6b09814fd396d156a5c8973e7 Mon Sep 17 00:00:00 2001 From: Marble <45654949+iMarble@users.noreply.github.com> Date: Sat, 3 Dec 2022 05:43:26 +0500 Subject: [PATCH] Add intents to example --- docs/ext/commands/commands.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/ext/commands/commands.rst b/docs/ext/commands/commands.rst index 81dc6509d..e479c4b08 100644 --- a/docs/ext/commands/commands.rst +++ b/docs/ext/commands/commands.rst @@ -40,9 +40,13 @@ as seen in the example above. The second is using the :func:`~ext.commands.comma Essentially, these two are equivalent: :: + import discord from discord.ext import commands - bot = commands.Bot(command_prefix='$') + intents = discord.Intents.default() + intents.message_content = True + + bot = commands.Bot(command_prefix='$', intents=intents) @bot.command() async def test(ctx):