mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +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);
|
const channel = this.client.channels.cache.get(ticketId);
|
||||||
if (channel) {
|
if (channel) {
|
||||||
const pinned = await channel.messages.fetchPinned();
|
const pinned = await channel.messages.fetchPinned();
|
||||||
data.pinnedMessageIds = pinned.keys();
|
data.pinnedMessageIds = [...pinned.keys()];
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.client.prisma.ticket.update({
|
await this.client.prisma.ticket.update({
|
||||||
|
Loading…
Reference in New Issue
Block a user