|
1 | 1 | import { EventEmitter } from 'events'; |
2 | 2 | import { |
3 | | - AxonConfs, AxonParams, Info, AxonInfo, ALogger, AxonUtils, LibClient, LibraryInterface, Utils, ADBProvider, ModuleRegistry, CommandRegistry, ListenerRegistry, |
4 | | - EventManager, GuildConfigCache, AxonConfig, ModuleLoader, CommandDispatcher, MessageManager, AxonStaffIDs, AxonOptions, Collection, AHandler, Listener, Resolver, |
5 | | - Webhooks, AxonTemplate, Module, Command, LOG_LEVELS, Ctx, LibMessage, GuildConfig, DEBUG_FLAGS, Executor, ExtentionInitReturn, |
| 3 | + AxonConfs, AxonParams, Info, AxonInfo, ALogger, AxonUtils, LibClient, LibraryInterface, Utils, ADBProvider, ModuleRegistry, CommandRegistry, ListenerRegistry, EventManager, |
| 4 | + GuildConfigCache, AxonConfig, ModuleLoader, CommandDispatcher, MessageManagerType, AxonStaffIDs, AxonOptions, Collection, AHandler, Listener, Resolver, Webhooks, |
| 5 | + AxonTemplate, Module, Command, LOG_LEVELS, Ctx, LibMessage, GuildConfig, DEBUG_FLAGS, Executor, ExtentionInitReturn, AxonLanguageResponse, DefaultLanguageResponse, LibDMChannel, |
6 | 6 | } from './'; |
7 | 7 |
|
8 | | -export declare class AxonClient extends EventEmitter { |
| 8 | +export declare class AxonClient<L extends AxonLanguageResponse = DefaultLanguageResponse> extends EventEmitter { |
9 | 9 | /** Configs (webhooks, template, custom) */ |
10 | 10 | private _configs: AxonConfs; |
11 | 11 | /** Bot settings */ |
@@ -49,7 +49,7 @@ export declare class AxonClient extends EventEmitter { |
49 | 49 | public dispatcher: CommandDispatcher; |
50 | 50 | public executor: Executor; |
51 | 51 | /** Message manager object accessible with `<AxonClient>.l` */ |
52 | | - private _messageManager: MessageManager; |
| 52 | + private _messageManager: MessageManagerType<L>; |
53 | 53 |
|
54 | 54 | /** Bot Staff (owners, admins, +...) */ |
55 | 55 | public staff: AxonStaffIDs; |
@@ -119,7 +119,7 @@ export declare class AxonClient extends EventEmitter { |
119 | 119 | * @readonly |
120 | 120 | * @memberof AxonClient |
121 | 121 | */ |
122 | | - readonly l: MessageManager; |
| 122 | + readonly l: MessageManagerType<L>; |
123 | 123 |
|
124 | 124 | /** |
125 | 125 | * Get a module from AxonClient with the given label. |
@@ -221,7 +221,7 @@ export declare class AxonClient extends EventEmitter { |
221 | 221 | * |
222 | 222 | * @memberof AxonClient |
223 | 223 | */ |
224 | | - public sendFullHelp(msg: LibMessage, guildConfig?: GuildConfig): Promise<void>; |
| 224 | + public sendFullHelp(msg: LibMessage<LibDMChannel>, guildConfig?: GuildConfig): Promise<void>; |
225 | 225 | /** |
226 | 226 | * Register a guild prefix. |
227 | 227 | * Shortcut to guildConfig.registerPrefix() |
|
0 commit comments