fix: convert pinned messages Map Iterator to array

This commit is contained in:
Isaac
2023-02-09 17:39:22 +00:00
parent 630d3ff4bb
commit 0d1cb90e7e

View File

@@ -1074,7 +1074,7 @@ module.exports = class TicketManager {
const channel = this.client.channels.cache.get(ticketId);
if (channel) {
const pinned = await channel.messages.fetchPinned();
data.pinnedMessageIds = pinned.keys();
data.pinnedMessageIds = [...pinned.keys()];
}
await this.client.prisma.ticket.update({