mirror of
https://github.com/sern-handler/handler
synced 2026-06-21 07:12:15 +00:00
moving types to types/handler.ts
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Ok, Result, Option } from 'ts-results';
|
||||
import type { Awaitable, Client, CommandInteraction, Message, MessagePayload} from 'discord.js';
|
||||
import type { Awaitable, Client, CommandInteraction, CommandInteractionOptionResolver, Message, MessagePayload} from 'discord.js';
|
||||
import type { MessageOptions } from 'child_process';
|
||||
import type { Sern } from '../../handler/sern/sern';
|
||||
|
||||
@@ -18,4 +18,13 @@ export type delegate = Sern.Module<unknown>["delegate"]
|
||||
export enum CommandType {
|
||||
TEXT = 2,
|
||||
SLASH = 4,
|
||||
}
|
||||
}
|
||||
|
||||
export type Context = {
|
||||
text : Option<Message>,
|
||||
slash : Option<CommandInteraction>
|
||||
}
|
||||
export type ParseType = {
|
||||
text : [arg: string];
|
||||
slash : [options : Omit<CommandInteractionOptionResolver, "getMessage" | "getFocused">]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user