update docs

This commit is contained in:
iDutchy 2020-10-02 00:34:01 +00:00
parent 7a56f0b28a
commit 525ee4be0a
4 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,8 @@ Custom Features
- Merged in ext-colors (https://github.com/MGardne8/DiscordPyColours)
- Using Rapptz/discord.py/tree/neo-docs for documentation
- Adding support for ``hex()`` to ``discord.Color``
- Added ``Client.embed_color`` / ``Bot.embed_color``
- Added ``TextChannel.can_send``
Key Features
-------------

View File

@ -144,6 +144,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
@property
def can_send(self):
""":class:`bool`: Checks if the bot can send messages"""
return self.guild.me.guild_permissions.send_messages
def permissions_for(self, member):

View File

@ -221,6 +221,10 @@ class Client:
sync your system clock to Google's NTP server.
.. versionadded:: 1.3
embed_color: Union[:class:`.Colour`, :class:`int`]
The default embed color you want to use when initialising a :class:`.Embed`. This will
remove the need to set the color per embed, but can still be overridden by setting a
color while creating an instance of an embed.
Attributes
-----------

View File

@ -26,6 +26,8 @@ Custom Features
- Merged in ext-colors (https://github.com/MGardne8/DiscordPyColours)
- Using Rapptz/discord.py/tree/neo-docs for documentation
- Adding support for ``hex()`` to ``discord.Color``
- Added ``Client.embed_color`` / ``Bot.embed_color``
- Added ``TextChannel.can_send``
Features
--------