We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e42a64 commit b5421adCopy full SHA for b5421ad
discord/abc.py
@@ -1553,7 +1553,7 @@ def can_send(self, *objects) -> bool:
1553
# Can't use channel = await self._get_channel() since its async
1554
if hasattr(self, 'permissions_for'):
1555
channel = self
1556
- elif hasattr(self, 'channel') and not type(self.channel).__name__ in ('DMChannel', 'GroupChannel')
+ elif hasattr(self, 'channel') and not type(self.channel).__name__ in ('DMChannel', 'GroupChannel'):
1557
channel = self.channel
1558
else:
1559
return True # Permissions don't exist for User DMs
0 commit comments