From 3f6fe2b6a92c4a52fe525f01701130cb90479030 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sat, 21 Jan 2023 22:25:26 -0700 Subject: [PATCH] lib.utils.selectionMessage: try 2 --- src/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/utils.js b/src/lib/utils.js index 610c882..e5b508d 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -225,9 +225,9 @@ async function selectionMessage( if ( user.id == msg.author.id && interaction.channel.id == msg.channel.id && - interaction.message.components[0].components[0].customID == msg.id + interaction.message.components[0].components[0].custom_id == msg.id ) { - if (interaction.data.customID == "cancel") { + if (interaction.data.custom_id == "cancel") { hf.events.remove("interactionCreate", `selection.${msg.id}`); clearTimeout(hf.selectionMessages.get(msg.id)); hf.selectionMessages.delete(msg.id);