Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interactions/client/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def __check_options(_option: Option, _names: list, _sub_command: Option = MISSIN
if not re.fullmatch(reg, _option.name):
raise LibraryException(
11,
message=f"The option name does not match the regex for valid names ('{regex}')",
message=f"The option name ('{_option.name}') does not match the regex for valid names ('{regex}').",
)
if _option.description is MISSING or not _option.description:
raise LibraryException(
Expand Down Expand Up @@ -864,7 +864,7 @@ def __check_coro():
and command.type == ApplicationCommandType.CHAT_INPUT
):
raise LibraryException(
11, message=f"Your command does not match the regex for valid names ('{regex}')"
11, message=f"Your command name ('{command.name}') does not match the regex for valid names ('{regex}')."
)
elif command.type == ApplicationCommandType.CHAT_INPUT and (
command.description is MISSING or not command.description
Expand Down