Skip to content

Commit 9c6bff6

Browse files
committed
Handle deleting category channel + log channel at once
1 parent 69238b8 commit 9c6bff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1363,8 +1363,8 @@ async def on_guild_channel_delete(self, channel):
13631363
logger.debug("Main category was deleted.")
13641364
self.config.remove("main_category_id")
13651365
await self.config.update()
1366-
return
1367-
elif isinstance(channel, discord.CategoryChannel):
1366+
1367+
if isinstance(channel, discord.CategoryChannel):
13681368
return
13691369

13701370
if not isinstance(channel, discord.TextChannel):

0 commit comments

Comments
 (0)