This commit is contained in:
xxDeveloper
2022-02-13 21:37:12 +03:00
6 changed files with 46 additions and 17 deletions

View File

@@ -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'>;