mirror of https://gitlab.com/litecord/litecord.git
Channel names are not supposed to end with a dash, pretty ghetto way of doing it but I'm tired af
This commit is contained in:
parent
fa937825df
commit
e9edd8ba37
|
|
@ -158,6 +158,8 @@ class LitecordValidator(Validator):
|
||||||
|
|
||||||
def _validate_type_channel_name(self, value: str) -> bool:
|
def _validate_type_channel_name(self, value: str) -> bool:
|
||||||
# for now, we'll use the same validation for guild_name
|
# for now, we'll use the same validation for guild_name
|
||||||
|
if value.endswith("-"):
|
||||||
|
value[-1] = ""
|
||||||
return self._validate_type_guild_name(value)
|
return self._validate_type_guild_name(value)
|
||||||
|
|
||||||
def _validate_type_theme(self, value: str) -> bool:
|
def _validate_type_theme(self, value: str) -> bool:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue