mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 01:30:13 +00:00
Refactor error handling slightly and don't use embeds for basic status/error messages. Closes #28.
This commit is contained in:
parent
869f686bd5
commit
8e504fa879
11 changed files with 74 additions and 81 deletions
|
|
@ -64,6 +64,7 @@ class MemberNameTooLongError(PluralKitError):
|
|||
else:
|
||||
super().__init__("The maximum length of a member name is 32 characters.")
|
||||
|
||||
|
||||
class InvalidColorError(PluralKitError):
|
||||
def __init__(self):
|
||||
super().__init__("Color must be a valid hex color. (eg. #ff0000)")
|
||||
Loading…
Add table
Add a link
Reference in a new issue