more custom_id to customID

This commit is contained in:
Cynthia Foxwell 2022-10-09 13:01:23 -06:00
parent 2a3d276de6
commit fba3e3d795
1 changed files with 2 additions and 2 deletions

View File

@ -217,9 +217,9 @@ async function selectionMessage(
if (
user.id == msg.author.id &&
interaction.channel.id == msg.channel.id &&
interaction.message.components[0].components[0].custom_id == msg.id
interaction.message.components[0].components[0].customID == msg.id
) {
if (interaction.data.custom_id == "cancel") {
if (interaction.data.customID == "cancel") {
hf.events.remove("interactionCreate", `selection.${msg.id}`);
clearTimeout(hf.selectionMessages.get(msg.id));
hf.selectionMessages.delete(msg.id);