Fix slash command flag parsing

Also removes the extra space at the end of fake message content
This commit is contained in:
Gnome 2021-10-08 20:06:05 +01:00
parent d781af8be5
commit 0abac8698d
No known key found for this signature in database
GPG Key ID: 9BF10F8372B254D1

View File

@ -1307,7 +1307,7 @@ class BotBase(GroupMixin):
else:
prefix = param.annotation.__commands_flag_prefix__
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
option = next((o for o in command_options if o["name"] == name), None)