diff --git a/PluralKit.Bot/Commands/MemberEdit.cs b/PluralKit.Bot/Commands/MemberEdit.cs index e6608bdc..b7dc3e94 100644 --- a/PluralKit.Bot/Commands/MemberEdit.cs +++ b/PluralKit.Bot/Commands/MemberEdit.cs @@ -36,7 +36,8 @@ namespace PluralKit.Bot // Warn if there's already a member by this name var existingMember = await _data.GetMemberByName(ctx.System, newName); - if (existingMember != null) { + if (existingMember != null) + if (existingMember.Id != target.Id) { var msg = $"{Emojis.Warn} You already have a member in your system with the name \"{existingMember.NameFor(ctx)}\" (`{existingMember.Hid}`). Do you want to rename this member to that name too?"; if (!await ctx.PromptYesNo(msg)) throw new PKError("Member renaming cancelled."); } @@ -476,4 +477,4 @@ namespace PluralKit.Bot await ctx.Reply($"{Emojis.Success} Member deleted."); } } -} \ No newline at end of file +}