lib.utils.selectionMessage: try 2
This commit is contained in:
parent
4f8a62e9c3
commit
3f6fe2b6a9
1 changed files with 2 additions and 2 deletions
|
@ -225,9 +225,9 @@ async function selectionMessage(
|
||||||
if (
|
if (
|
||||||
user.id == msg.author.id &&
|
user.id == msg.author.id &&
|
||||||
interaction.channel.id == msg.channel.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}`);
|
hf.events.remove("interactionCreate", `selection.${msg.id}`);
|
||||||
clearTimeout(hf.selectionMessages.get(msg.id));
|
clearTimeout(hf.selectionMessages.get(msg.id));
|
||||||
hf.selectionMessages.delete(msg.id);
|
hf.selectionMessages.delete(msg.id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue