mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Add message content to doc examples
This also changes the wording of Context's attributes for consistency.
This commit is contained in:
1 parent
68dbf0f882
commit
6cf7c4a7d7
2 files changed
+9
-4
No files matched your search
+6
-1
@@ -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