1 | import { Client } from "discord.js";
|
2 | import CommandSystem, { PermissionSetEntityStub, CommandHandler } from "./commands";
|
3 | import { Context } from "./commands/commands";
|
4 | import BKConstants from "./Constants";
|
5 | import "./node-additions";
|
6 | export interface RoleOptions {
|
7 | moderator: string[];
|
8 | admin: string[];
|
9 | root: string[];
|
10 | }
|
11 | export interface ApplicationOptions<T extends PermissionSetEntityStub> {
|
12 | |
13 |
|
14 |
|
15 | token?: string;
|
16 | |
17 |
|
18 |
|
19 | client?: Client;
|
20 | |
21 |
|
22 |
|
23 | commandDirectory?: string;
|
24 | |
25 |
|
26 |
|
27 |
|
28 | automaticCategoryNames?: boolean;
|
29 | |
30 |
|
31 |
|
32 | commandPrefix?: typeof Constants['COMMAND_PREFIX'];
|
33 | |
34 |
|
35 |
|
36 | errorFormat?: BKConstants.ErrorFormat;
|
37 | |
38 |
|
39 |
|
40 | preloadExclude?: string[];
|
41 | |
42 |
|
43 |
|
44 | contextPopulator?: (context: Context) => Context;
|
45 | |
46 |
|
47 |
|
48 | permissionsEntity?: T;
|
49 | |
50 |
|
51 |
|
52 | superuserCheck?: (id: string) => boolean;
|
53 | |
54 |
|
55 |
|
56 | globalGuards?: CommandHandler[];
|
57 | |
58 |
|
59 |
|
60 | overrides?: {
|
61 | commandSystem?: {
|
62 | features?: {
|
63 | nodeBasedPermissions?: false;
|
64 | superuserPermissions?: false;
|
65 | };
|
66 | };
|
67 | };
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 | export declare class Application<T extends PermissionSetEntityStub = PermissionSetEntityStub> {
|
73 | options: ApplicationOptions<T>;
|
74 | readonly client: Client;
|
75 | readonly commandSystem: CommandSystem;
|
76 | constructor(options: ApplicationOptions<T>);
|
77 | /**
|
78 | * Sets the Discord client up and loads the command system
|
79 | */
|
80 | init(): Promise<void>;
|
81 | }
|
82 | export default Application;
|
83 | export * from "./commands";
|
84 | export declare const Constants: typeof BKConstants;
|
85 | export * from "./db";
|
86 | export * from "./modules";
|
87 | export * from "./util";
|