-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
36 lines (28 loc) · 819 Bytes
/
types.d.ts
File metadata and controls
36 lines (28 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import type { SlashCommandBuilder, CommandInteraction, Collection } from "npm:discord.js@^14.17.2";
declare module 'discord.js' {
export interface Client {
commands: Collection<string, Command>;
}
}
export interface Command {
data: SlashCommandBuilder;
execute: (interaction: CommandInteraction) => Promise<void>;
}
export interface Event {
name: string;
once?: boolean;
execute: (...args: any[]) => Promise<void>;
}
export type Birthdays = Record<string, Record<string, string>>;
export interface Reminder {
userId: string;
message: string;
duration: number;
timestamp: number;
}
export type Reminders = Record<string, Reminder>;
export interface Config {
logChannel?: string;
birthdayChannel?: string;
}
export type Configs = Record<string, Config>;