diff options
| author | Alex Nørgaard <[email protected]> | 2020-09-28 00:08:19 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-27 19:08:19 -0400 |
| commit | 759fb52e56d460b6f79c95f47dca4401d708edb1 (patch) | |
| tree | 6bc7d10bbe18dcc94c4ae647ce5fd3b85bf21cba /docs | |
| parent | Add Client.intents to query the current intents (diff) | |
| download | discord.py-759fb52e56d460b6f79c95f47dca4401d708edb1.tar.xz discord.py-759fb52e56d460b6f79c95f47dca4401d708edb1.zip | |
Update intents with small typo fixes
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/intents.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/intents.rst b/docs/intents.rst index 6e18e738..17c43592 100644 --- a/docs/intents.rst +++ b/docs/intents.rst @@ -5,7 +5,7 @@ A Primer to Gateway Intents ============================= -In version 1.5 comes with the introduction of :class:`Intents`. This is a radical change in how bots are written. An intent basically allows a bot to subscribe into specific buckets of events. The events that correspond to each intent is documented in the individual attribute of the :class:`Intents` documentation. +In version 1.5 comes the introduction of :class:`Intents`. This is a radical change in how bots are written. An intent basically allows a bot to subscribe into specific buckets of events. The events that correspond to each intent is documented in the individual attribute of the :class:`Intents` documentation. These intents are passed to the constructor of :class:`Client` or its subclasses (:class:`AutoShardedClient`, :class:`~.AutoShardedBot`, :class:`~.Bot`) with the ``intents`` argument. @@ -152,7 +152,7 @@ For example: # client = discord.Client(intents=intents) # or # from discord.ext import commands - # bot = commands.Bot(intents=intents) + # bot = commands.Bot(command_prefix="!", intents=intents) Why does ``on_ready`` take so long to fire? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |