mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Properly handle cases where a category is removed.
This commit is contained in:
parent
dbf8b5bda6
commit
458cb83b47
@ -222,7 +222,7 @@ class GuildChannel:
|
|||||||
yield from http.bulk_channel_update(self.guild.id, payload, reason=reason)
|
yield from http.bulk_channel_update(self.guild.id, payload, reason=reason)
|
||||||
self.position = position
|
self.position = position
|
||||||
if parent_id is not _undefined:
|
if parent_id is not _undefined:
|
||||||
self.category_id = int(parent_id)
|
self.category_id = int(parent_id) if parent_id else None
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def _edit(self, options, reason):
|
def _edit(self, options, reason):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user