.
This commit is contained in:
parent
16cc64219a
commit
182a4b9eaf
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue