mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
count user messages
This commit is contained in:
parent
8ea372ea36
commit
6c49544e7a
@ -194,6 +194,11 @@ module.exports = class extends Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await client.prisma.user.update({
|
||||||
|
data: { messageCount: { increment: 1 } },
|
||||||
|
where: { id: message.author.id },
|
||||||
|
});
|
||||||
|
|
||||||
const data = { lastMessageAt: new Date() };
|
const data = { lastMessageAt: new Date() };
|
||||||
if (
|
if (
|
||||||
ticket.firstResponseAt === null &&
|
ticket.firstResponseAt === null &&
|
||||||
|
Loading…
Reference in New Issue
Block a user