Skip to content

Commit bd367a1

Browse files
TAG-EpicMaskDuck
andauthored
Apply suggestions from code review
Co-authored-by: MaskDuck <it-is@too-obvious-that.maskduck.is-a.dev>
1 parent eef7a84 commit bd367a1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/gateway.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Gateway quickstart
1111
.. hint::
1212
The finished example can be found `here <https://github.com/nextsnake/nextcore/blob/master/examples/gateway/ping_pong.py>`__
1313
.. note::
14-
We will use await at the top level here as its easier to explain. For your own code, please use a async function.
14+
We will use await at the top level here as it's easier to explain. For your own code, please use an async function.
1515

16-
If you want a example of how it can be done in a async function, see the full example.
16+
If you want a example of how it can be done in an async function, see the full example.
1717

1818
Setting up
1919
^^^^^^^^^^
@@ -33,7 +33,7 @@ Setting up
3333
3434
Intents
3535
^^^^^^^
36-
Discord uses intents to select what you want to be sent from the gateway to reduce wasted resources
36+
Discord uses intents to select what you want to be received from the gateway to reduce wasted resources.
3737
This is done via bitflags.
3838

3939
A list of intents can be found on the `intents page <https://discord.dev/topics/gateway#gateway-intents>`__
@@ -46,20 +46,20 @@ In this example we want the message intent, and the message content intent.
4646
MESSAGE_CONTENT_INTENT = 1 << 15
4747
4848
.. note::
49-
This can also be stored in binary representation
49+
This can also be stored in binary representation.
5050

5151
.. code-block:: python3
5252
5353
GUILD_MESSAGES_INTENT = 0b1000000000
5454
MESSAGE_CONTENT_INTENT = 0b1000000000000000
5555
56-
If you want to use multiple intents, you can combine them using bitwise or (``|``)
56+
If you want to use multiple intents, you can combine them using bitwise or (``|``).
5757

5858
.. code-block:: python3
5959
6060
INTENTS = GUILD_MESSAGES_INTENT | MESSAGE_CONTENT_INTENT
6161
62-
Now just give it to the :class:`ShardManager`
62+
Now just give it to the :class:`ShardManager`.
6363

6464
.. code-block:: python3
6565
@@ -97,7 +97,7 @@ Now just check if someone said ``ping`` and respond with ``pong``
9797
)
9898
9999
.. hint::
100-
Confused by this? Check out the :ref:`Making requests` tutorial
100+
Confused by this? Check out the :ref:`Making requests` tutorial!
101101

102102
Connecting to Discord
103103
^^^^^^^^^^^^^^^^^^^^^
@@ -129,8 +129,8 @@ We can wait for a critical error before closing to fix this.
129129

130130
Continuing
131131
^^^^^^^^^^
132-
We suggest you look into `interactions & application commands <https://discord.dev/interactions/application-commands>`__ as your next topic.
133-
They allow you to add `buttons <https://discord.dev/interactions/message-components#buttons>`__ and `slash commands <https://discord.dev/interactions/application-commands#slash-commands>`__ and other cool stuff
132+
We suggest that you look into `interactions & application commands <https://discord.dev/interactions/application-commands>`__ as your next topic.
133+
They allow you to add `buttons <https://discord.dev/interactions/message-components#buttons>`__ and `slash commands <https://discord.dev/interactions/application-commands#slash-commands>`__ and other cool stuff!
134134

135135

136136
Gateway reference

0 commit comments

Comments
 (0)