mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-07 18:33:02 +00:00
Add message content to doc examples
This also changes the wording of Context's attributes for consistency.
This commit is contained in:
@ -19,9 +19,14 @@ It looks something like this:
|
||||
|
||||
.. code-block:: python3
|
||||
|
||||
# This example requires the 'message_content' intent.
|
||||
|
||||
import discord
|
||||
|
||||
client = discord.Client()
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
|
||||
client = discord.Client(intents=intents)
|
||||
|
||||
@client.event
|
||||
async def on_ready():
|
||||
|
Reference in New Issue
Block a user