mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-17 09:23:07 +02:00
prisma
This commit is contained in:
parent
e65405c183
commit
b89328125a
@ -1,6 +1,6 @@
|
|||||||
const { Client: FrameworkClient }= require('@eartharoid/dbf');
|
const { Client: FrameworkClient }= require('@eartharoid/dbf');
|
||||||
const { Intents } = require('discord.js');
|
const { Intents } = require('discord.js');
|
||||||
const prisma = require('@prisma/client');
|
const { PrismaClient } = require('@prisma/client');
|
||||||
|
|
||||||
module.exports = class Client extends FrameworkClient {
|
module.exports = class Client extends FrameworkClient {
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -12,8 +12,10 @@ module.exports = class Client extends FrameworkClient {
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async login(token) {
|
async login(token) {
|
||||||
this.prisma = new prisma.PrismaClient();
|
this.prisma = new PrismaClient();
|
||||||
|
// this.prisma.$use((params, next) => {})
|
||||||
return super.login(token);
|
return super.login(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user