Fix created channel name check

This commit is contained in:
BreadTube 2026-05-27 01:20:05 +09:00
commit 65da9a65de

View file

@ -444,7 +444,7 @@ class Bot:
allow=Permissions.VIEW_CHANNEL | Permissions.SEND_MESSAGES,
deny=Permissions.NONE)]},
request_timeout=self.config.request_timeout)
if sub_channel != subscription.name:
if sub_channel.name != subscription.name:
self.logger.error('Cannot create channel "%s" : mismatch name -> %s',
subscription.name, sub_channel.name)
self.discord_manager.delete_text_channel(sub_channel.id, request_timeout=self.config.request_timeout)