From 182a4b9eaff086d06f5fa0c564b393c58492f3fb Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Sun, 9 Oct 2022 12:57:07 -0600 Subject: [PATCH] . --- 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 3529170..e2e6542 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -155,7 +155,7 @@ async function hastebin(body) { return `<${hf.config.haste_provider}/${res.key}>`; } -hf.selectionMessages = hf.selectionMessages || new Collection(); +hf.selectionMessages = hf.selectionMessages ?? new Collection(); async function selectionMessage( msg, heading, @@ -258,7 +258,7 @@ async function selectionMessage( msg.id, setTimeout(() => { hf.events.remove("interactionCreate", `selection.${msg.id}`); - hf.selectionMessages.remove(msg.id); + hf.selectionMessages.delete(msg.id); reject("Request timed out"); }, timeout)