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

@@ -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)