Fix note custom log

This commit is contained in:
Tarrgon
2025-10-23 09:57:57 -04:00
parent 433ed278a8
commit 916bf519d4
+8 -1
View File
@@ -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,