From 916bf519d418fc0b80f90ac0f0027561a291c196 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Thu, 23 Oct 2025 09:57:57 -0400 Subject: [PATCH] Fix note custom log --- src/modals/add-note-modal.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modals/add-note-modal.ts b/src/modals/add-note-modal.ts index e3b34a8..741521d 100644 --- a/src/modals/add-note-modal.ts +++ b/src/modals/add-note-modal.ts @@ -7,6 +7,8 @@ export default { handler: async function (client: Client, interaction: ModalSubmitInteraction, id: string) { const message = interaction.fields.getTextInputValue('note-message'); + const user = await client.users.fetch(id); + logCustomEvent(interaction.guild!, { title: 'Note Added', description: null, @@ -14,10 +16,15 @@ export default { timestamp: new Date(), fields: [ { - name: 'User', + name: 'Moderator', value: `<@${interaction.user.id}>\n${interaction.user.username}`, inline: true }, + { + name: 'User', + value: `<@${id}>\n${user.username}`, + inline: true + }, { name: 'Note', value: message,