mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 17:51:27 +03:00
mjs -> cjs
This commit is contained in:
24
src/client.js
Normal file
24
src/client.js
Normal file
@@ -0,0 +1,24 @@
|
||||
const { Client: FrameworkClient }= require('@eartharoid/dbf');
|
||||
const { Intents } = require('discord.js');
|
||||
const prisma = require('@prisma/client');
|
||||
|
||||
module.exports = class Client extends FrameworkClient {
|
||||
constructor() {
|
||||
super({
|
||||
intents: [
|
||||
Intents.FLAGS.GUILDS,
|
||||
Intents.FLAGS.GUILD_MEMBERS,
|
||||
Intents.FLAGS.GUILD_MESSAGES,
|
||||
],
|
||||
});
|
||||
}
|
||||
async login(token) {
|
||||
this.prisma = new prisma.PrismaClient();
|
||||
return super.login(token);
|
||||
}
|
||||
|
||||
async destroy() {
|
||||
await this.prisma.$disconnect();
|
||||
return super.destroy();
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user