Replace channel name spaces to hyphens
This commit is contained in:
parent
a30ed6c85c
commit
4133bca460
4 changed files with 15 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class SubscriptionInfo:
|
|||
@staticmethod
|
||||
def discord_compatible_name(text: str) -> SubscriptionName:
|
||||
assert text, 'Channel name cannot be empty'
|
||||
return SubscriptionName(unidecode(text[:100]))
|
||||
return SubscriptionName(unidecode(text[:100].replace(' ', '-')))
|
||||
|
||||
@staticmethod
|
||||
def from_dict(info: dict) -> SubscriptionInfo:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue