mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-24 01:55:03 +00:00
upgrade discord.js
This commit is contained in:
parent
ea8a02f8b2
commit
c932333971
32 changed files with 232 additions and 107 deletions
|
@ -31,7 +31,7 @@ export const MigratePinsCmd = starboardCmd({
|
|||
|
||||
msg.channel.send(`Migrating pins from <#${args.pinChannel.id}> to <#${starboardChannel.id}>...`);
|
||||
|
||||
const pins = (await args.pinChannel.messages.fetchPinned()).array();
|
||||
const pins = [...(await args.pinChannel.messages.fetchPinned().catch(() => [])).values()];
|
||||
pins.reverse(); // Migrate pins starting from the oldest message
|
||||
|
||||
for (const pin of pins) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue