lib.utils.selectionMessage: try 2

This commit is contained in:
Cynthia Foxwell 2023-01-21 22:25:26 -07:00
parent 4f8a62e9c3
commit 3f6fe2b6a9

View file

@ -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);