mirror of
https://github.com/sern-handler/handler
synced 2026-06-28 02:32:15 +00:00
Merge branch 'main' of https://github.com/jacoobes/Sern
This commit is contained in:
@@ -28,8 +28,13 @@ export type Context = {
|
||||
message: Option<Message>,
|
||||
interaction: Option<CommandInteraction>
|
||||
}
|
||||
<<<<<<< HEAD
|
||||
|
||||
export type Arg = ParseType<{ text: string, slash: SlashOptions }>;
|
||||
=======
|
||||
// `string` | `SlashOptions`, narrow down your type by checking `text` | `slash`
|
||||
export type Arg = ParseType<{text : string, slash : SlashOptions}>
|
||||
>>>>>>> 6ce7649311f1d077f6437528cbad10da16e58435
|
||||
|
||||
// TypeAlias for interaction.options
|
||||
export type SlashOptions = Omit<CommandInteractionOptionResolver, 'getMessage' | 'getFocused'>;
|
||||
|
||||
Reference in New Issue
Block a user