mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 12:23: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() };
|
||||
if (
|
||||
ticket.firstResponseAt === null &&
|
||||
|
Loading…
Reference in New Issue
Block a user