Fixed small error

This commit is contained in:
WatDuhHekBro 2021-03-28 13:58:10 -05:00
parent 3b1b8ec914
commit 1954b2d999

View file

@ -54,7 +54,7 @@ export default new Command({
);
script.runInContext(context, {timeout: REGEX_TIMEOUT_MS});
emotes = sandbox.emotes;
emoteCollection = emoteCollection.filter((emote) => emote.id in emotes); // Only allow emotes that haven't been deleted.
emoteCollection = emoteCollection.filter((emote) => emotes.has(emote.id)); // Only allow emotes that haven't been deleted.
displayEmoteList($, emoteCollection);
} catch (error) {
if (error.code === "ERR_SCRIPT_EXECUTION_TIMEOUT") {