mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
Fix infinite recursion in TextChannel.type
This commit is contained in:
parent
7ee15e1d68
commit
9e3375f3fc
@ -201,7 +201,7 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
||||
@property
|
||||
def type(self) -> Literal[ChannelType.text, ChannelType.news]:
|
||||
""":class:`ChannelType`: The channel's Discord type."""
|
||||
if self.type == 0:
|
||||
if self._type == 0:
|
||||
return ChannelType.text
|
||||
return ChannelType.news
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user