Add message content to doc examples

This also changes the wording of Context's attributes 
for consistency.
This commit is contained in:
Cryptex
2022-03-14 18:01:48 -07:00
committed by GitHub
parent 68dbf0f882
commit 6cf7c4a7d7
2 changed files with 9 additions and 4 deletions

View File

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