From 0a7f7f2fa7721cd20f8c6210d8cdd93636e22fc4 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Thu, 19 Jun 2025 11:19:37 -0400 Subject: [PATCH] Fix response grammar --- src/utils/name-sync.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/name-sync.ts b/src/utils/name-sync.ts index 9763a9a..669be7d 100644 --- a/src/utils/name-sync.ts +++ b/src/utils/name-sync.ts @@ -6,7 +6,8 @@ import { ChatInputCommandInteraction, GuildMember, ModalSubmitInteraction, UserC export async function syncName(interaction: ChatInputCommandInteraction | UserContextMenuCommandInteraction | ModalSubmitInteraction, member: GuildMember, id: number | null) { if (member.roles.highest.comparePositionTo(member.guild.members.me!.roles.highest) > 0) { - return interaction.editReply('I am unable to set your nickname as your role is higher than mine.'); + const res = interaction.user.id == member.id ? 'your' : 'their'; + return interaction.editReply(`I am unable to set ${res} nickname as ${res} role is higher than mine.`); } const availableIds = await Database.getE621Ids(interaction.user.id);