Add message content to doc examples

This also changes the wording of Context's attributes 
for consistency.
This commit is contained in:
Cryptex authored and GitHub committed 2022-03-14 21:01:48 -04:00
1 parent 68dbf0f882
commit 6cf7c4a7d7
2 files changed
+9 -4

No files matched your search

+6 -1
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():