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