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 @@ -490,7 +490,7 @@ def __check_options(_option: Option, _names: list, _sub_command: Option = MISSIN
if _option.name is MISSING:
raise InteractionException(11, message="Options must have a name.")
if _sub_command is not MISSING:
__indent = 8 if not _sub_groups_present else 12
__indent = 12 if _sub_groups_present else 8
log.debug(
f"{' ' * __indent}checking option '{_option.name}' of sub command '{_sub_command.name}'"
)
Expand Down Expand Up @@ -1340,7 +1340,7 @@ def decorator(func: Coroutine):

if func:
# allows omitting `()` on `@listener`
func.__listener_name__ = func.__name__
func.__listener_name__ = name or func.__name__
return func

return decorator
Expand Down