mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
Allow to edit prefixes through redbot --edit (#3486)
* feat: allow to edit prefixes through `redbot --edit` * enhance: allow to setup multiple prefixes * fix: gotta break out of the loop * fix: gotta sort prefixes in reversed order * fix: editing prefix shouldn't save it as token * fix: sort prefixes when using flag too * chore(changelog): add towncrier entry * docs: update help for `--edit` flag
This commit is contained in:
@@ -90,7 +90,7 @@ def parse_cli_flags(args):
|
||||
action="store_true",
|
||||
help="Edit the instance. This can be done without console interaction "
|
||||
"by passing --no-prompt and arguments that you want to change (available arguments: "
|
||||
"--edit-instance-name, --edit-data-path, --copy-data, --owner, --token).",
|
||||
"--edit-instance-name, --edit-data-path, --copy-data, --owner, --token, --prefix).",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--edit-instance-name",
|
||||
|
||||
Reference in New Issue
Block a user