3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

Fix 6am mistakes

This commit is contained in:
Dragory 2020-12-23 15:56:49 +02:00
parent 88576281fb
commit 32536e3ad7

View file

@ -22,7 +22,7 @@ export async function updateStarboardMessageStarCount(
debouncedUpdates[key] = setTimeout(() => {
delete debouncedUpdates[key];
const embed = starboardMessage.embeds[0]!;
embed.fields!.shift(); // Remove pseudo footer
embed.fields!.pop(); // Remove pseudo footer
embed.fields!.push(createStarboardPseudoFooterForMessage(starboard, originalMessage, starEmoji, starCount)); // Create new pseudo footer
starboardMessage.edit({ embed });
}, DEBOUNCE_DELAY);