properly checking TextChannel.can_send
This commit is contained in:
parent
c6b417bc7b
commit
14d8310192
@ -15,7 +15,7 @@ __title__ = 'discord'
|
|||||||
__author__ = 'Rapptz'
|
__author__ = 'Rapptz'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__copyright__ = 'Copyright 2015-2020 Rapptz'
|
__copyright__ = 'Copyright 2015-2020 Rapptz'
|
||||||
__version__ = '1.5.0.2'
|
__version__ = '1.5.0.3'
|
||||||
|
|
||||||
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
|||||||
""":class:`bool`: Checks if the bot can send messages
|
""":class:`bool`: Checks if the bot can send messages
|
||||||
|
|
||||||
.. versionadded:: 1.5.0.1"""
|
.. 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):
|
def permissions_for(self, member):
|
||||||
base = super().permissions_for(member)
|
base = super().permissions_for(member)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user