feat (handler) more progress on message handler

This commit is contained in:
Jacob Nguyen
2022-03-16 23:18:55 -05:00
parent 5b53d4203e
commit 2ea35588bd
4 changed files with 29 additions and 22 deletions

View File

@@ -7,10 +7,10 @@ import type {
Awaitable,
} from 'discord.js';
import type { Modules } from '../handler/structures/structxports';
import type { Context, Modules } from '../handler/structures/structxports';
export type Visibility = 'private' | 'public';
export type parseArgs = <T>( ctx: Context, args : string[] ) => T | possibleOutput;
// Anything that can be sent in a `<TextChannel>#send` or `<CommandInteraction>#reply`
export type possibleOutput<T = string> = T | (MessagePayload & MessageOptions);
export type execute = Modules.Module['execute'];