You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ext/commands/extensions.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ An example extension looks like this:
27
27
def setup(bot):
28
28
bot.add_command(hello)
29
29
30
-
In this example we define a simple command, and when the extension is loaded this command is added to the bot. Now the final step to this is loading the extension, which we do by calling :meth:`.commands.Bot.load_extension`. To load this extension we call ``bot.load_extension('hello')``.
30
+
In this example we define a simple command, and when the extension is loaded this command is added to the bot. Now the final step to this is loading the extension, which we do by calling :meth:`.Bot.load_extension`. To load this extension we call ``bot.load_extension('hello')``.
31
31
32
32
.. admonition:: Cogs
33
33
:class: helpful
@@ -41,7 +41,7 @@ In this example we define a simple command, and when the extension is loaded thi
41
41
Reloading
42
42
-----------
43
43
44
-
When you make a change to the extension and want to reload the references, the library comes with a function to do this for you, :meth:`Bot.reload_extension`.
44
+
When you make a change to the extension and want to reload the references, the library comes with a function to do this for you, :meth:`.Bot.reload_extension`.
Copy file name to clipboardExpand all lines: docs/faq.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,7 +234,7 @@ technically in another thread, we must take caution in calling thread-safe opera
234
234
us, :mod:`asyncio` comes with a :func:`asyncio.run_coroutine_threadsafe` function that allows us to call
235
235
a coroutine from another thread.
236
236
237
-
However, this function returns a :class:`concurrent.Future` and to actually call it we have to fetch its result. Putting all of
237
+
However, this function returns a :class:`~concurrent.futures.Future` and to actually call it we have to fetch its result. Putting all of
238
238
this together we can do the following: ::
239
239
240
240
def my_after(error):
@@ -295,7 +295,7 @@ How do I make a web request?
295
295
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
296
296
297
297
To make a request, you should use a non-blocking library.
298
-
This library already uses and requires a 3rd party library for making requests, ``aiohttp``.
298
+
This library already uses and requires a 3rd party library for making requests, :doc:`aiohttp<aio:index>`.
299
299
300
300
Quick example: ::
301
301
@@ -393,7 +393,7 @@ Example: ::
393
393
How do I make a subcommand?
394
394
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
395
395
396
-
Use the ``group`` decorator. This will transform the callback into a ``Group`` which will allow you to add commands into
396
+
Use the :func:`~ext.commands.group` decorator. This will transform the callback into a :class:`~ext.commands.Group` which will allow you to add commands into
397
397
the group operating as "subcommands". These groups can be arbitrarily nested as well.
0 commit comments