This commit is contained in:
Cynthia Foxwell 2022-10-09 12:57:07 -06:00
parent 16cc64219a
commit 182a4b9eaf

View file

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