UNPKG

@ayanaware/bentocord

Version:

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

17 lines (16 loc) 698 B
import { Role } from 'eris'; import { AnyCommandContext } from '../CommandContext'; import { OptionType } from '../constants/OptionType'; import type { CommandOptionValue } from '../interfaces/CommandOption'; import { Resolver } from '../interfaces/Resolver'; export declare type RoleOption = CommandOptionValue<OptionType.ROLE, Role>; export declare class RoleOptionResolver implements Resolver<Role> { option: OptionType; convert: 8; reduce(ctx: AnyCommandContext, option: RoleOption, role: Role): Promise<{ display: string; extra?: string; }>; resolve(ctx: AnyCommandContext, option: RoleOption, input: string): Promise<Array<Role>>; private checkRole; }