mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-01 16:31:25 +03:00
count user messages
This commit is contained in:
@@ -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 &&
|
||||
|
Reference in New Issue
Block a user