From 65da9a65dea018a2afba27fdfe411f753d8f1260 Mon Sep 17 00:00:00 2001 From: BreadTube Date: Wed, 27 May 2026 01:20:05 +0900 Subject: [PATCH] Fix created channel name check --- breadtube_bot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/breadtube_bot/bot.py b/breadtube_bot/bot.py index b7d1ba2..2fee54b 100644 --- a/breadtube_bot/bot.py +++ b/breadtube_bot/bot.py @@ -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)