I am terrible at python jfc

This commit is contained in:
Mai 2020-09-10 20:28:39 +00:00
parent e9edd8ba37
commit fbc15219f7
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ 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("-"): if value.endswith("-"):
value[-1] = "" value = 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: