Add intents to example

This commit is contained in:
Marble 2022-12-03 05:43:26 +05:00 committed by GitHub
parent c0dfdf1bef
commit ec9089cf0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):