mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Fix changing instance name with redbot --edit (#5540)
This commit is contained in:
parent
acdc1df084
commit
1cf497b128
@ -187,7 +187,7 @@ def _edit_instance_name(old_name, new_name, confirm_overwrite, no_prompt):
|
|||||||
" run this command with --overwrite-existing-instance flag."
|
" run this command with --overwrite-existing-instance flag."
|
||||||
)
|
)
|
||||||
elif not no_prompt and confirm("Would you like to change the instance name?", default=False):
|
elif not no_prompt and confirm("Would you like to change the instance name?", default=False):
|
||||||
name = get_name()
|
name = get_name("")
|
||||||
if name in _get_instance_names():
|
if name in _get_instance_names():
|
||||||
print(
|
print(
|
||||||
"WARNING: An instance already exists with this name. "
|
"WARNING: An instance already exists with this name. "
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user