Replace channel name spaces to hyphens
This commit is contained in:
parent
a30ed6c85c
commit
2cf87495fa
2 changed files with 3 additions and 1 deletions
|
|
@ -365,6 +365,7 @@ class Bot:
|
|||
break
|
||||
if selected_category is None:
|
||||
selected_category = category_ranges[-1][2]
|
||||
self.logger.debug('Creating new channel: %s for id %s', subscription.name, subscription.channel_id)
|
||||
sub_channel = self.discord_manager.create_text_channel(
|
||||
self.guild_id, {
|
||||
'name': subscription.name,
|
||||
|
|
|
|||
|
|
@ -103,7 +103,8 @@ class SubscriptionHelper:
|
|||
name = values[0].decode()
|
||||
channel_id = values[1].decode()
|
||||
subscriptions[channel_id] = SubscriptionInfo(
|
||||
name=SubscriptionInfo.discord_compatible_name(name), channel_id=channel_id, last_update=0)
|
||||
name=SubscriptionInfo.discord_compatible_name(
|
||||
name.replace(' ', '-')), channel_id=channel_id, last_update=0)
|
||||
return subscriptions
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue