mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-05 09:26:10 +00:00
Add message content intent to examples
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# This example requires the 'members' privileged intents
|
||||
# This example requires the 'members' and 'message_content' privileged intents
|
||||
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
@ -11,6 +11,7 @@ There are a number of utility commands being showcased here.'''
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.members = True
|
||||
intents.message_content = True
|
||||
|
||||
bot = commands.Bot(command_prefix='?', description=description, intents=intents)
|
||||
|
||||
|
Reference in New Issue
Block a user