Fix slash command flag parsing
Also removes the extra space at the end of fake message content
This commit is contained in:
parent
d781af8be5
commit
0abac8698d
@ -1307,7 +1307,7 @@ class BotBase(GroupMixin):
|
|||||||
else:
|
else:
|
||||||
prefix = param.annotation.__commands_flag_prefix__
|
prefix = param.annotation.__commands_flag_prefix__
|
||||||
delimiter = param.annotation.__commands_flag_delimiter__
|
delimiter = param.annotation.__commands_flag_delimiter__
|
||||||
message.content += f"{prefix}{name} {option['value']}{delimiter}" # type: ignore
|
message.content += f" {prefix}{name}{delimiter}{option['value']}" # type: ignore
|
||||||
continue
|
continue
|
||||||
|
|
||||||
option = next((o for o in command_options if o["name"] == name), None)
|
option = next((o for o in command_options if o["name"] == name), None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user