mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 02:30:11 +00:00
Add member name conflict warning. Closes #10.
This commit is contained in:
parent
c36a054519
commit
728c8ee8d0
6 changed files with 25 additions and 6 deletions
|
|
@ -106,7 +106,7 @@ async def switch_move(ctx: CommandContext):
|
|||
new_relative = humanize.naturaltime(pluralkit.utils.fix_time(new_time))
|
||||
|
||||
# Confirm with user
|
||||
switch_confirm_message = "This will move the latest switch ({}) from {} ({}) to {} ({}). Is this OK?".format(members, last_absolute, last_relative, new_absolute, new_relative)
|
||||
switch_confirm_message = await ctx.reply("This will move the latest switch ({}) from {} ({}) to {} ({}). Is this OK?".format(members, last_absolute, last_relative, new_absolute, new_relative))
|
||||
if not await ctx.confirm_react(ctx.message.author, switch_confirm_message):
|
||||
raise CommandError("Switch move cancelled.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue