mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-14 17:50:13 +00:00
remove rest of the parsing in csharp bot
This commit is contained in:
parent
15ffd16c01
commit
479e0a59b5
35 changed files with 242 additions and 409 deletions
|
|
@ -44,7 +44,7 @@ public class MemberEdit
|
|||
}
|
||||
}
|
||||
|
||||
public async Task ChangeName(Context ctx, PKMember target, string newName)
|
||||
public async Task ChangeName(Context ctx, PKMember target, string newName, bool confirmYes)
|
||||
{
|
||||
ctx.CheckSystem().CheckOwnMember(target);
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ public class MemberEdit
|
|||
{
|
||||
var msg =
|
||||
$"{Emojis.Warn} You already have a member in your system with the name \"{existingMember.NameFor(ctx)}\" (`{existingMember.DisplayHid(ctx.Config)}`). Do you want to rename this member to that name too?";
|
||||
if (!await ctx.PromptYesNo(msg, "Rename")) throw new PKError("Member renaming cancelled.");
|
||||
if (!await ctx.PromptYesNo(msg, "Rename", flagValue: confirmYes)) throw new PKError("Member renaming cancelled.");
|
||||
}
|
||||
|
||||
// Rename the member
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue