diff options
| author | Rapptz <[email protected]> | 2019-06-09 00:23:22 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-06-09 00:23:22 -0400 |
| commit | 7e2da1c93b9db02b71e9f7a35c8a09679d97b0bb (patch) | |
| tree | a420236ece4573b0f449323a0783d786a385b056 /discord/abc.py | |
| parent | Replace Enum with an internal one for significant speed improvements. (diff) | |
| download | discord.py-7e2da1c93b9db02b71e9f7a35c8a09679d97b0bb.tar.xz discord.py-7e2da1c93b9db02b71e9f7a35c8a09679d97b0bb.zip | |
Publicly expose a type property for all channels.
Fix #2185
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index 35b703af..1d490cd4 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -611,7 +611,7 @@ class GuildChannel: base_attrs['name'] = name or self.name guild_id = self.guild.id cls = self.__class__ - data = await self._state.http.create_channel(guild_id, self._type, reason=reason, **base_attrs) + data = await self._state.http.create_channel(guild_id, self.type.value, reason=reason, **base_attrs) obj = cls(state=self._state, guild=self.guild, data=data) # temporarily add it to the cache |