commands.ArgumentBuilder

interface ArgumentBuilder

Creates positional prefix-command argument descriptors.

exported from lib.weeble.d

Methods

ArgumentBuilder.channel(description: string) CommandArgument<AnyGuildChannel>
ArgumentBuilder.custom<TValue>(description: string, parser: CustomArgumentParser<TValue>) CommandArgument<TValue>
Type parameters:

TValue

ArgumentBuilder.duration(description: string) CommandArgument<number>

Parses one decimal number followed by ms, s, m, h, d, or w; returns milliseconds.

ArgumentBuilder.integer(description: string) CommandArgument<number>
ArgumentBuilder.member(description: string) CommandArgument<GuildMember>
ArgumentBuilder.number(description: string) CommandArgument<number>
ArgumentBuilder.rest(description: string) CommandArgument<string>
ArgumentBuilder.role(description: string) CommandArgument<Role>
ArgumentBuilder.string(description: string) CommandArgument<string>
ArgumentBuilder.user(description: string) CommandArgument<User>