Fix 6am mistakes

This commit is contained in:
Dragory 2020-12-23 15:56:49 +02:00
parent 0f9c67a1c1
commit e0a19331c3
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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