properly checking TextChannel.can_send

This commit is contained in:
iDutchy 2020-10-21 20:06:47 -05:00
parent c6b417bc7b
commit 14d8310192
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ __title__ = 'discord'
__author__ = 'Rapptz'
__license__ = 'MIT'
__copyright__ = 'Copyright 2015-2020 Rapptz'
__version__ = '1.5.0.2'
__version__ = '1.5.0.3'
__path__ = __import__('pkgutil').extend_path(__path__, __name__)

View File

@ -147,7 +147,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
""":class:`bool`: Checks if the bot can send messages
.. versionadded:: 1.5.0.1"""
return self.guild.me.guild_permissions.send_messages
return self.permissions_for(self.guild.me).send_messages
def permissions_for(self, member):
base = super().permissions_for(member)