From 50dcdac5ca74d39f2589e66266b2e99626c60b1e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 10 Apr 2019 05:12:11 -0400 Subject: [commands] Fix references in Bot to actually link. Exceptions can't seem to link due to a bug in Sphinx. --- discord/ext/commands/bot.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'discord/ext') diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 35667559..febe640f 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -280,7 +280,7 @@ class BotBase(GroupMixin): return await discord.utils.async_all(f(ctx) for f in data) async def is_owner(self, user): - """Checks if a :class:`.User` or :class:`.Member` is the owner of + """Checks if a :class:`~discord.User` or :class:`~discord.Member` is the owner of this bot. If an :attr:`owner_id` is not set, it is fetched automatically @@ -630,7 +630,7 @@ class BotBase(GroupMixin): The extension can provide an optional global function, ``teardown``, to do miscellaneous clean-up if necessary. This function takes a single parameter, the ``bot``, similar to ``setup`` from - :func:`~.Bot.load_extension`. + :meth:`~.Bot.load_extension`. Parameters ------------ @@ -904,9 +904,6 @@ class Bot(BotBase, discord.Client): anything that you can do with a :class:`discord.Client` you can do with this bot. - .. _deque: https://docs.python.org/3.4/library/collections.html#collections.deque - .. _event loop: https://docs.python.org/3/library/asyncio-eventloops.html - This class also subclasses :class:`.GroupMixin` to provide the functionality to manage commands. -- cgit v1.2.3