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)