mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
fix: convert pinned messages Map Iterator
to array
This commit is contained in:
parent
630d3ff4bb
commit
0d1cb90e7e
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user