feat: move from discord to web forms

This commit is contained in:
2025-01-22 17:02:16 -08:00
parent d7cd3ffaab
commit 2e00e2ed6a
21 changed files with 280 additions and 538 deletions
-2
View File
@@ -4,10 +4,8 @@
* @author Naomi Carrigan
*/
import type { PrismaClient, Sanctions } from "@prisma/client";
import type { Client } from "discord.js";
export interface App {
discord: Client;
database: PrismaClient;
sanctions: Array<Sanctions>;
cacheUpdated: Date;
-15
View File
@@ -1,15 +0,0 @@
/**
* @copyright nhcarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import type { App } from "./app.js";
import type {
ChatInputCommandInteraction,
SlashCommandOptionsOnlyBuilder,
} from "discord.js";
export interface Command {
data: SlashCommandOptionsOnlyBuilder;
run: (app: App, interaction: ChatInputCommandInteraction)=> Promise<void>;
}