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)