import { Client, Collection } from "discord.js";
import { Command } from "./interfaces/command.js";
import { Handler } from "./interfaces/handlers.js";
import { QuickDB } from "quick.db";
export interface Ticket {
userId: string;
channelId: string;
}
export interface Bot {
client: Client;
commands: Collection<string, Command>;
handlers: Collection<string, Handler>;
tickets: QuickDB<Ticket>;
}
export const bot: Bot = {
client: new Client({
intents: [
"Guilds",
"GuildMembers",
"DirectMessages",
"GuildBans",
"GuildMessages",
"MessageContent",
],
}),
commands: new Collection(),
handlers: new Collection(),
tickets: new QuickDB().table<Ticket>("tickets"),
};
import { Client, Collection } from "discord.js";
import { Command } from "./interfaces/command.js";
import { Handler } from "./interfaces/handlers.js";
import { QuickDB } from "quick.db";
export interface Ticket {
userId: string;
channelId: string;
}
export interface Bot {
client: Client;
commands: Collection<string, Command>;
handlers: Collection<string, Handler>;
tickets: QuickDB<Ticket>;
}
export const bot: Bot = {
client: new Client({
intents: [
"Guilds",
"GuildMembers",
"DirectMessages",
"GuildBans",
"GuildMessages",
"MessageContent",
],
}),
commands: new Collection(),
handlers: new Collection(),
tickets: new QuickDB().table<Ticket>("tickets"),
};