mirror of
https://github.com/sern-handler/handler
synced 2026-06-17 13:22:17 +00:00
chore: remove dependence on discord.js Awaitable type
This commit is contained in:
@@ -11,12 +11,11 @@
|
||||
* Plugins are reminiscent of middleware in express.
|
||||
*/
|
||||
|
||||
import type { Awaitable } from 'discord.js';
|
||||
import type { Err, Ok, Result } from 'ts-results-es';
|
||||
import type { PluginType } from '../core/structures/enums';
|
||||
import type { CommandModule, EventModule } from './module';
|
||||
import type { InitArgs } from '../core/plugins';
|
||||
import type { Processed } from './handler';
|
||||
import type { Awaitable, Processed } from './handler';
|
||||
export type PluginResult = Awaitable<VoidResult>;
|
||||
export type VoidResult = Result<void, void>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user