Browse Source

Ignore already deleted channels

master
Taavi Väänänen 8 months ago
parent
commit
420477aa09
  1. 2
      config.example.yaml
  2. 3
      main.py

2
config.example.yaml

@ -1,5 +1,5 @@
discord_token: ''
discord_client_id: '800686107846377474'
discord_client_id: ''
guilds:
12345678:

3
main.py

@ -87,6 +87,9 @@ class Huonebot(commands.Bot):
for channel_id in self.empty_channels:
channel = self.get_channel(channel_id)
if channel is None:
continue
logger.debug('Deleting empty channel %s', channel.name)
category: CategoryChannel = channel.category
for to_delete in category.channels:

Loading…
Cancel
Save