feat(bot): ✨ Make prefixes allow up to 5 characters.
This commit is contained in:
+3
-3
@@ -271,16 +271,16 @@ class Payphone(commands.AutoShardedBot):
|
||||
|
||||
Args:
|
||||
server (discord.Guild | models.Server | int): The server to update or it's ID.
|
||||
prefix (str, optional): The new prefix. It cannot be longer than 3 characters. Defaults
|
||||
prefix (str, optional): The new prefix. It cannot be longer than 5 characters. Defaults
|
||||
to "p.".
|
||||
|
||||
Raises:
|
||||
ValueError: The prefix provided is invalid.
|
||||
"""
|
||||
|
||||
if len(prefix) > 3 or len(prefix) == 0:
|
||||
if len(prefix) > 5 or len(prefix) == 0:
|
||||
raise ValueError(
|
||||
"The prefix must not be longer than 3 characters and must not be an empty string."
|
||||
"The prefix must not be longer than 5 characters and must not be an empty string."
|
||||
)
|
||||
|
||||
server_id = server if isinstance(server, int) else server.id
|
||||
|
||||
Reference in New Issue
Block a user