UNPKG

@ayanaware/bentocord

Version:

Bentocord is a Bento plugin designed to rapidly build fully functional Discord Bots.

11 lines (10 loc) 525 B
import { AnyCommandContext } from '../CommandContext'; import { OptionType } from '../constants/OptionType'; import type { CommandOptionValue } from '../interfaces/CommandOption'; import { Resolver } from '../interfaces/Resolver'; export declare type BooleanOption = CommandOptionValue<OptionType.BOOLEAN, boolean>; export declare class BooleanOptionResolver implements Resolver<boolean> { option: OptionType; convert: 5; resolve(ctx: AnyCommandContext, option: BooleanOption, input: string): Promise<boolean>; }