Skip to main content

Namespace: Resolvers

Interfaces

Functions

resolveBoolean

resolveBoolean(parameter, customs?): Result<boolean, ArgumentBooleanError>

Parameters

NameType
parameterstring
customs?Object
customs.falses?readonly string[]
customs.truths?readonly string[]

Returns

Result<boolean, ArgumentBooleanError>

Defined in

projects/framework/src/lib/resolvers/boolean.ts:7


resolveChannel

resolveChannel(parameter, message): Result<ChannelTypes, ArgumentChannelError>

Parameters

NameType
parameterstring
messageMessage<boolean>

Returns

Result<ChannelTypes, ArgumentChannelError>

Defined in

projects/framework/src/lib/resolvers/channel.ts:7


resolveDMChannel

resolveDMChannel(parameter, message): Result<DMChannel, ArgumentChannelError | ArgumentDMChannelError>

Parameters

NameType
parameterstring
messageMessage<boolean>

Returns

Result<DMChannel, ArgumentChannelError | ArgumentDMChannelError>

Defined in

projects/framework/src/lib/resolvers/dmChannel.ts:7


resolveDate

resolveDate(parameter, options?): Result<Date, ArgumentDateError | ArgumentDateTooEarly | ArgumentDateTooFar>

Parameters

NameType
parameterstring
options?Object
options.maximum?number
options.minimum?number

Returns

Result<Date, ArgumentDateError | ArgumentDateTooEarly | ArgumentDateTooFar>

Defined in

projects/framework/src/lib/resolvers/date.ts:4


resolveEmoji

resolveEmoji(parameter): Ok<EmojiObject> | Err<Identifiers>

Parameters

NameType
parameterstring

Returns

Ok<EmojiObject> | Err<Identifiers>

Defined in

projects/framework/src/lib/resolvers/emoji.ts:6


resolveEnum

resolveEnum(parameter, options?): Result<string, ArgumentEnumEmptyError | ArgumentEnumError>

Parameters

NameType
parameterstring
options?Object
options.caseInsensitive?boolean
options.enum?string[]

Returns

Result<string, ArgumentEnumEmptyError | ArgumentEnumError>

Defined in

projects/framework/src/lib/resolvers/enum.ts:4


resolveFloat

resolveFloat(parameter, options?): Result<number, ArgumentFloatError | ArgumentFloatTooSmall | ArgumentFloatTooLarge>

Parameters

NameType
parameterstring
options?Object
options.maximum?number
options.minimum?number

Returns

Result<number, ArgumentFloatError | ArgumentFloatTooSmall | ArgumentFloatTooLarge>

Defined in

projects/framework/src/lib/resolvers/float.ts:4


resolveGuildCategoryChannel

resolveGuildCategoryChannel(parameter, guild): Result<CategoryChannel, ArgumentGuildChannelError | ArgumentGuildCategoryChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<CategoryChannel, ArgumentGuildChannelError | ArgumentGuildCategoryChannelError>

Defined in

projects/framework/src/lib/resolvers/guildCategoryChannel.ts:7


resolveGuildChannel

resolveGuildChannel(parameter, guild): Result<GuildBasedChannelTypes, ArgumentGuildChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<GuildBasedChannelTypes, ArgumentGuildChannelError>

Defined in

projects/framework/src/lib/resolvers/guildChannel.ts:7


resolveGuildNewsChannel

resolveGuildNewsChannel(parameter, guild): Result<NewsChannel, ArgumentGuildChannelError | ArgumentGuildNewsChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<NewsChannel, ArgumentGuildChannelError | ArgumentGuildNewsChannelError>

Defined in

projects/framework/src/lib/resolvers/guildNewsChannel.ts:7


resolveGuildNewsThreadChannel

resolveGuildNewsThreadChannel(parameter, guild): Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError | ArgumentGuildNewsThreadChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError | ArgumentGuildNewsThreadChannelError>

Defined in

projects/framework/src/lib/resolvers/guildNewsThreadChannel.ts:7


resolveGuildPrivateThreadChannel

resolveGuildPrivateThreadChannel(parameter, guild): Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError | ArgumentGuildPrivateThreadChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError | ArgumentGuildPrivateThreadChannelError>

Defined in

projects/framework/src/lib/resolvers/guildPrivateThreadChannel.ts:7


resolveGuildPublicThreadChannel

resolveGuildPublicThreadChannel(parameter, guild): Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError | ArgumentGuildPublicThreadChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError | ArgumentGuildPublicThreadChannelError>

Defined in

projects/framework/src/lib/resolvers/guildPublicThreadChannel.ts:7


resolveGuildStageVoiceChannel

resolveGuildStageVoiceChannel(parameter, guild): Result<StageChannel, ArgumentGuildChannelError | ArgumentGuildStageVoiceChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<StageChannel, ArgumentGuildChannelError | ArgumentGuildStageVoiceChannelError>

Defined in

projects/framework/src/lib/resolvers/guildStageVoiceChannel.ts:7


resolveGuildTextChannel

resolveGuildTextChannel(parameter, guild): Result<TextChannel, ArgumentGuildChannelError | ArgumentGuildTextChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<TextChannel, ArgumentGuildChannelError | ArgumentGuildTextChannelError>

Defined in

projects/framework/src/lib/resolvers/guildTextChannel.ts:7


resolveGuildThreadChannel

resolveGuildThreadChannel(parameter, guild): Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<ThreadChannel, ArgumentGuildChannelError | ArgumentGuildThreadChannelError>

Defined in

projects/framework/src/lib/resolvers/guildThreadChannel.ts:7


resolveGuildVoiceChannel

resolveGuildVoiceChannel(parameter, guild): Result<VoiceChannel, ArgumentGuildChannelError | ArgumentGuildVoiceChannelError>

Parameters

NameType
parameterstring
guildGuild

Returns

Result<VoiceChannel, ArgumentGuildChannelError | ArgumentGuildVoiceChannelError>

Defined in

projects/framework/src/lib/resolvers/guildVoiceChannel.ts:7


resolveHyperlink(parameter): Result<URL, ArgumentHyperlinkError>

Parameters

NameType
parameterstring

Returns

Result<URL, ArgumentHyperlinkError>

Defined in

projects/framework/src/lib/resolvers/hyperlink.ts:5


resolveInteger

resolveInteger(parameter, options?): Result<number, ArgumentIntegerError | ArgumentIntegerTooSmall | ArgumentIntegerTooLarge>

Parameters

NameType
parameterstring
options?Object
options.maximum?number
options.minimum?number

Returns

Result<number, ArgumentIntegerError | ArgumentIntegerTooSmall | ArgumentIntegerTooLarge>

Defined in

projects/framework/src/lib/resolvers/integer.ts:4


resolveMember

resolveMember(parameter, guild): Promise<Result<GuildMember, ArgumentMemberError>>

Parameters

NameType
parameterstring
guildGuild

Returns

Promise<Result<GuildMember, ArgumentMemberError>>

Defined in

projects/framework/src/lib/resolvers/member.ts:6


resolveMessage

resolveMessage(parameter, options): Promise<Result<Message, ArgumentMessageError>>

Parameters

NameType
parameterstring
optionsMessageResolverOptions

Returns

Promise<Result<Message, ArgumentMessageError>>

Defined in

projects/framework/src/lib/resolvers/message.ts:14


resolveNumber

resolveNumber(parameter, options?): Result<number, ArgumentNumberError | ArgumentNumberTooSmall | ArgumentNumberTooLarge>

Parameters

NameType
parameterstring
options?Object
options.maximum?number
options.minimum?number

Returns

Result<number, ArgumentNumberError | ArgumentNumberTooSmall | ArgumentNumberTooLarge>

Defined in

projects/framework/src/lib/resolvers/number.ts:4


resolvePartialDMChannel

resolvePartialDMChannel(parameter, message): Result<DMChannel | PartialDMChannel, ArgumentChannelError | ArgumentDMChannelError>

Parameters

NameType
parameterstring
messageMessage<boolean>

Returns

Result<DMChannel | PartialDMChannel, ArgumentChannelError | ArgumentDMChannelError>

Defined in

projects/framework/src/lib/resolvers/partialDMChannel.ts:7


resolveRole

resolveRole(parameter, guild): Promise<Result<Role, ArgumentRoleError>>

Parameters

NameType
parameterstring
guildGuild

Returns

Promise<Result<Role, ArgumentRoleError>>

Defined in

projects/framework/src/lib/resolvers/role.ts:6


resolveString

resolveString(parameter, options?): Result<string, ArgumentStringTooShort | ArgumentStringTooLong>

Parameters

NameType
parameterstring
options?Object
options.maximum?number
options.minimum?number

Returns

Result<string, ArgumentStringTooShort | ArgumentStringTooLong>

Defined in

projects/framework/src/lib/resolvers/string.ts:4


resolveUser

resolveUser(parameter): Promise<Result<User, ArgumentUserError>>

Parameters

NameType
parameterstring

Returns

Promise<Result<User, ArgumentUserError>>

Defined in

projects/framework/src/lib/resolvers/user.ts:7