Fix created channel name check
This commit is contained in:
parent
4743d14e35
commit
65da9a65de
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ class Bot:
|
||||||
allow=Permissions.VIEW_CHANNEL | Permissions.SEND_MESSAGES,
|
allow=Permissions.VIEW_CHANNEL | Permissions.SEND_MESSAGES,
|
||||||
deny=Permissions.NONE)]},
|
deny=Permissions.NONE)]},
|
||||||
request_timeout=self.config.request_timeout)
|
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',
|
self.logger.error('Cannot create channel "%s" : mismatch name -> %s',
|
||||||
subscription.name, sub_channel.name)
|
subscription.name, sub_channel.name)
|
||||||
self.discord_manager.delete_text_channel(sub_channel.id, request_timeout=self.config.request_timeout)
|
self.discord_manager.delete_text_channel(sub_channel.id, request_timeout=self.config.request_timeout)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue