fix strings for group rename
This commit is contained in:
parent
4b944e2b20
commit
9e4f5d8e40
@ -83,9 +83,9 @@ namespace PluralKit.Bot
|
|||||||
// Warn if there's already a group by this name
|
// Warn if there's already a group by this name
|
||||||
var existingGroup = await _repo.GetGroupByName(conn, ctx.System.Id, newName);
|
var existingGroup = await _repo.GetGroupByName(conn, ctx.System.Id, newName);
|
||||||
if (existingGroup != null && existingGroup.Id != target.Id) {
|
if (existingGroup != null && existingGroup.Id != target.Id) {
|
||||||
var msg = $"{Emojis.Warn} You already have a group in your system with the name \"{existingGroup.Name}\" (with ID `{existingGroup.Hid}`). Do you want to rename this member to that name too?";
|
var msg = $"{Emojis.Warn} You already have a group in your system with the name \"{existingGroup.Name}\" (with ID `{existingGroup.Hid}`). Do you want to rename this group to that name too?";
|
||||||
if (!await ctx.PromptYesNo(msg, "Rename"))
|
if (!await ctx.PromptYesNo(msg, "Rename"))
|
||||||
throw new PKError("Group creation cancelled.");
|
throw new PKError("Group rename cancelled.");
|
||||||
}
|
}
|
||||||
|
|
||||||
await _repo.UpdateGroup(conn, target.Id, new GroupPatch {Name = newName});
|
await _repo.UpdateGroup(conn, target.Id, new GroupPatch {Name = newName});
|
||||||
|
Loading…
Reference in New Issue
Block a user