Fix various reference issues in documentation

Co-Authored-By: Riley Shaw <30989490+ShineyDev@users.noreply.github.com>
This commit is contained in:
Josh
2021-05-06 21:51:07 +10:00
committed by GitHub
parent 1bf7aadf94
commit 3864fb37a0
24 changed files with 106 additions and 52 deletions

View File

@ -114,7 +114,7 @@ class User(Snowflake, Protocol):
The user's username.
discriminator: :class:`str`
The user's discriminator.
avatar: :class:`Asset`
avatar: :class:`~discord.Asset`
The avatar asset the user has.
bot: :class:`bool`
If the user is a bot account.
@ -634,7 +634,7 @@ class GuildChannel:
Deletes the channel.
You must have :attr:`~Permissions.manage_channels` permission to use this.
You must have :attr:`~discord.Permissions.manage_channels` permission to use this.
Parameters
-----------
@ -678,7 +678,7 @@ class GuildChannel:
If the ``overwrite`` parameter is ``None``, then the permission
overwrites are deleted.
You must have the :attr:`~Permissions.manage_roles` permission to use this.
You must have the :attr:`~discord.Permissions.manage_roles` permission to use this.
Examples
----------
@ -860,7 +860,7 @@ class GuildChannel:
A rich interface to help move a channel relative to other channels.
If exact position movement is required, :meth:`edit` should be used instead.
If exact position movement is required, ``edit`` should be used instead.
You must have the :attr:`~discord.Permissions.manage_channels` permission to
do this.
@ -990,7 +990,7 @@ class GuildChannel:
Creates an instant invite from a text or voice channel.
You must have the :attr:`~Permissions.create_instant_invite` permission to
You must have the :attr:`~discord.Permissions.create_instant_invite` permission to
do this.
Parameters
@ -1040,7 +1040,7 @@ class GuildChannel:
Returns a list of all active instant invites from this channel.
You must have :attr:`~Permissions.manage_channels` to get this information.
You must have :attr:`~discord.Permissions.manage_channels` to get this information.
Raises
-------
@ -1321,7 +1321,7 @@ class Messageable(Protocol):
def history(self, *, limit=100, before=None, after=None, around=None, oldest_first=None):
"""Returns an :class:`~discord.AsyncIterator` that enables receiving the destination's message history.
You must have :attr:`~Permissions.read_message_history` permissions to use this.
You must have :attr:`~discord.Permissions.read_message_history` permissions to use this.
Examples
---------