feat: migrate from github

This commit is contained in:
2024-05-12 01:15:42 -07:00
commit bbd6a710bb
47 changed files with 4756 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
export interface AirtableResponse {
records: {
id: string;
createdTime: string;
fields: {
"Anything Else?"?: string;
Reference: {
id: string;
width?: number;
height?: number;
url: string;
filename: string;
size: number;
type: string;
thumbnails?: {
small: {
url: string;
width: number;
height: number;
};
large: {
url: string;
width: number;
height: number;
};
full: {
url: string;
width: number;
height: number;
};
};
}[];
"Acknowledgement "?: boolean;
"Email Address"?: string;
"What would you like us to draw?"?: string;
Action: string;
Name: string;
"Contact Method": string;
Created: string;
"Proof of Donation"?: {
id: string;
width: number;
height: number;
url: string;
filename: string;
size: number;
type: string;
thumbnails: {
small: {
url: string;
width: number;
height: number;
};
large: {
url: string;
width: number;
height: number;
};
full: {
url: string;
width: number;
height: number;
};
};
}[];
"Donation Amount"?: number;
Fund?: string;
Handle?: string;
};
}[];
}
+8
View File
@@ -0,0 +1,8 @@
import { ButtonInteraction } from "discord.js";
import { ExtendedClient } from "./ExtendedClient";
export type ButtonHandler = (
Bot: ExtendedClient,
interaction: ButtonInteraction<"cached">
) => Promise<void>;
+13
View File
@@ -0,0 +1,13 @@
import { PrismaClient } from "@prisma/client";
import { Client, WebhookClient } from "discord.js";
export interface ExtendedClient extends Client {
db: PrismaClient;
debug: WebhookClient;
comm: WebhookClient;
dist: WebhookClient;
news: WebhookClient;
ticket: WebhookClient;
lastArticle: number;
ticketLogs: { [key: string]: string };
}