Skip to main content

@sapphire/framework

Namespaces

Enumerations

Classes

Interfaces

Type Aliases

ApplicationCommandRegistryRegisterOptions

Ƭ ApplicationCommandRegistryRegisterOptions: RegisterOptions

Defined in

projects/framework/src/lib/utils/application-commands/ApplicationCommandRegistry.ts:503


ArgumentResult

Ƭ ArgumentResult<T>: Result<T, ArgumentError<T>>

Type parameters

Name
T

Defined in

projects/framework/src/lib/structures/Argument.ts:12


ArrayResultType

Ƭ ArrayResultType<T>: Result<T[], UserError | ArgumentError<T>>

Type parameters

Name
T

Defined in

projects/framework/src/lib/parsers/Args.ts:792


AsyncArgumentResult

Ƭ AsyncArgumentResult<T>: Promise<ArgumentResult<T>>

Type parameters

Name
T

Defined in

projects/framework/src/lib/structures/Argument.ts:22


AsyncPluginHooks

Ƭ AsyncPluginHooks: PreLogin | PostLogin

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:8


AsyncPreconditionContainerReturn

Ƭ AsyncPreconditionContainerReturn: Promise<PreconditionContainerResult>

Defined in

projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:24


AsyncPreconditionResult

Ƭ AsyncPreconditionResult: Promise<Result<unknown, UserError>>

Defined in

projects/framework/src/lib/structures/Precondition.ts:11


AutocompleteCommand

Ƭ AutocompleteCommand: Command & Required<Pick<Command, "autocompleteRun">>

Defined in

projects/framework/src/lib/structures/Command.ts:514


Awaitable

Ƭ Awaitable<T>: PromiseLike<T> | T

Type parameters

Name
T

Defined in

node_modules/@sapphire/utilities/dist/index.d.ts:71


AwaitableArgumentResult

Ƭ AwaitableArgumentResult<T>: Awaitable<ArgumentResult<T>>

Type parameters

Name
T

Defined in

projects/framework/src/lib/structures/Argument.ts:17


ChatInputCommand

Ƭ ChatInputCommand: Command & Required<Pick<Command, "chatInputRun">>

Defined in

projects/framework/src/lib/structures/Command.ts:490


CommandOptionsRunType

Ƭ CommandOptionsRunType: "DM" | "GUILD_TEXT" | "GUILD_VOICE" | "GUILD_NEWS" | "GUILD_NEWS_THREAD" | "GUILD_PUBLIC_THREAD" | "GUILD_PRIVATE_THREAD" | "GUILD_ANY"

Defined in

projects/framework/src/lib/structures/Command.ts:531


ContextMenuCommand

Ƭ ContextMenuCommand: Command & Required<Pick<Command, "contextMenuRun">>

Defined in

projects/framework/src/lib/structures/Command.ts:502


DetailedDescriptionCommand

Ƭ DetailedDescriptionCommand: string | DetailedDescriptionCommandObject

Defined in

projects/framework/src/lib/structures/Command.ts:829


InteractionHandlerParseResult

Ƭ InteractionHandlerParseResult<Instance>: UnwrapSome<Awaited<ReturnType<Instance["parse"]>>>

Type parameters

NameType
Instanceextends InteractionHandler

Defined in

projects/framework/src/lib/structures/InteractionHandler.ts:97


LogMethods

Ƭ LogMethods: "trace" | "debug" | "info" | "warn" | "error"

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:54


MessageCommand

Ƭ MessageCommand: Command & Required<Pick<Command, "messageRun">>

Defined in

projects/framework/src/lib/structures/Command.ts:480


Option

Ƭ Option<T>: Some<T> | None

Type parameters

NameDescription
T-

Defined in

node_modules/@sapphire/result/dist/lib/Option.d.ts:11


PreconditionArrayResolvable

Ƭ PreconditionArrayResolvable: readonly PreconditionEntryResolvable[] | PreconditionArrayResolvableDetails

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:75


PreconditionContainerResult

Ƭ PreconditionContainerResult: Result<unknown, UserError>

Defined in

projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:12


PreconditionContainerReturn

Ƭ PreconditionContainerReturn: Awaitable<PreconditionContainerResult>

Defined in

projects/framework/src/lib/utils/preconditions/IPreconditionContainer.ts:18


PreconditionEntryResolvable

Ƭ PreconditionEntryResolvable: PreconditionSingleResolvable | PreconditionArrayResolvable

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerArray.ts:83


PreconditionKeys

Ƭ PreconditionKeys: keyof Preconditions

Defined in

projects/framework/src/lib/structures/Precondition.ts:129


PreconditionResult

Ƭ PreconditionResult: Awaitable<Result<unknown, UserError>>

Defined in

projects/framework/src/lib/structures/Precondition.ts:10


PreconditionSingleResolvable

Ƭ PreconditionSingleResolvable: SimplePreconditionKeys | SimplePreconditionSingleResolvableDetails | PreconditionSingleResolvableDetails

Defined in

projects/framework/src/lib/utils/preconditions/PreconditionContainerSingle.ts:43


Result

Ƭ Result<T, E>: Ok<T> | Err<E>

Type parameters

NameDescription
T-
E-

Defined in

node_modules/@sapphire/result/dist/lib/Result.d.ts:12


ResultType

Ƭ ResultType<T>: Result<T, UserError | ArgumentError<T>>

Type parameters

Name
T

Defined in

projects/framework/src/lib/parsers/Args.ts:791


SapphirePrefix

Ƭ SapphirePrefix: string | readonly string[] | null

Defined in

projects/framework/src/lib/SapphireClient.ts:26


SimplePreconditionKeys

Ƭ SimplePreconditionKeys: { [K in PreconditionKeys]: Preconditions[K] extends never ? K : never }[PreconditionKeys]

Defined in

projects/framework/src/lib/structures/Precondition.ts:130


SyncPluginHooks

Ƭ SyncPluginHooks: Exclude<PluginHook, AsyncPluginHooks>

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:13

Variables

ApplicationCommandRegistries

Const ApplicationCommandRegistries: Object

Type declaration

NameType
acquire(commandName: string) => ApplicationCommandRegistry
getDefaultBehaviorWhenNotIdentical() => RegisterBehavior
setDefaultBehaviorWhenNotIdentical(behavior?: null | RegisterBehavior) => void
get registries()ReadonlyMap<string, ApplicationCommandRegistry>

Defined in

projects/framework/src/index.ts:23


CorePreconditions

Const CorePreconditions: Object

Type declaration

NameType
ClientPermissionstypeof CorePrecondition
Cooldowntypeof CorePrecondition
DMOnlytypeof CorePrecondition
Enabledtypeof CorePrecondition
GuildNewsOnlytypeof CorePrecondition
GuildNewsThreadOnlytypeof CorePrecondition
GuildOnlytypeof CorePrecondition
GuildPrivateThreadOnlytypeof CorePrecondition
GuildPublicThreadOnlytypeof CorePrecondition
GuildTextOnlytypeof CorePrecondition
GuildThreadOnlytypeof CorePrecondition
GuildVoiceOnlytypeof CorePrecondition
NSFWtypeof CorePrecondition
UserPermissionstypeof CorePrecondition

Defined in

projects/framework/src/index.ts:84


Events

Const Events: Object

Type declaration

NameTypeDescription
ChannelCreate"channelCreate"-
ChannelDelete"channelDelete"-
ChannelPinsUpdate"channelPinsUpdate"-
ChannelUpdate"channelUpdate"-
ChatInputCommandAccepted"chatInputCommandAccepted"
ChatInputCommandDenied"chatInputCommandDenied"
ChatInputCommandError"chatInputCommandError"
ChatInputCommandFinish"chatInputCommandFinish"
ChatInputCommandRun"chatInputCommandRun"
ChatInputCommandSuccess"chatInputCommandSuccess"
ClientReady"ready"-
CommandApplicationCommandRegistryError"commandApplicationCommandRegistryError"
CommandAutocompleteInteractionError"commandAutocompleteInteractionError"
CommandAutocompleteInteractionSuccess"commandAutocompleteInteractionSuccess"
CommandDoesNotHaveChatInputCommandHandler"commandDoesNotHaveChatInputCommandHandler"
CommandDoesNotHaveContextMenuCommandHandler"commandDoesNotHaveContextMenuCommandHandler"
CommandDoesNotHaveMessageCommandHandler"commandDoesNotHaveMessageCommandHandler"
ContextMenuCommandAccepted"contextMenuCommandAccepted"
ContextMenuCommandDenied"contextMenuCommandDenied"
ContextMenuCommandError"contextMenuCommandError"
ContextMenuCommandFinish"contextMenuCommandFinish"
ContextMenuCommandRun"contextMenuCommandRun"
ContextMenuCommandSuccess"contextMenuCommandSuccess"
Debug"debug"-
Error"error"-
GuildBanAdd"guildBanAdd"-
GuildBanRemove"guildBanRemove"-
GuildCreate"guildCreate"-
GuildDelete"guildDelete"-
GuildEmojiCreate"emojiCreate"-
GuildEmojiDelete"emojiDelete"-
GuildEmojiUpdate"emojiUpdate"-
GuildIntegrationsUpdate"guildIntegrationsUpdate"-
GuildMemberAdd"guildMemberAdd"-
GuildMemberAvailable"guildMemberAvailable"-
GuildMemberRemove"guildMemberRemove"-
GuildMemberUpdate"guildMemberUpdate"-
GuildMembersChunk"guildMembersChunk"-
GuildRoleCreate"roleCreate"-
GuildRoleDelete"roleDelete"-
GuildRoleUpdate"roleUpdate"-
GuildStickerCreate"stickerCreate"-
GuildStickerDelete"stickerDelete"-
GuildStickerUpdate"stickerUpdate"-
GuildUnavailable"guildUnavailable"-
GuildUpdate"guildUpdate"-
InteractionCreate"interactionCreate"-
InteractionHandlerError"interactionHandlerError"
InteractionHandlerParseError"interactionHandlerParseError"
InvalidRequestWarning"invalidRequestWarning"-
Invalidated"invalidated"-
InviteCreate"inviteCreate"-
InviteDelete"inviteDelete"-
ListenerError"listenerError"
MentionPrefixOnly"mentionPrefixOnly"
MessageBulkDelete"messageDeleteBulk"-
MessageCommandAccepted"messageCommandAccepted"
MessageCommandDenied"messageCommandDenied"
MessageCommandError"messageCommandError"
MessageCommandFinish"messageCommandFinish"
MessageCommandRun"messageCommandRun"
MessageCommandSuccess"messageCommandSuccess"
MessageCommandTypingError"messageCommandTypingError"
MessageCreate"messageCreate"-
MessageDelete"messageDelete"-
MessageReactionAdd"messageReactionAdd"-
MessageReactionRemove"messageReactionRemove"-
MessageReactionRemoveAll"messageReactionRemoveAll"-
MessageReactionRemoveEmoji"messageReactionRemoveEmoji"-
MessageUpdate"messageUpdate"-
NonPrefixedMessage"nonPrefixedMessage"
PiecePostLoad"piecePostLoad"
PieceUnload"pieceUnload"
PluginLoaded"pluginLoaded"
PossibleAutocompleteInteraction"possibleAutocompleteInteraction"
PossibleChatInputCommand"possibleChatInputCommand"
PossibleContextMenuCommand"possibleContextMenuCommand"
PreChatInputCommandRun"preChatInputCommandRun"
PreContextMenuCommandRun"preContextMenuCommandRun"
PreMessageCommandRun"preMessageCommandRun"
PreMessageParsed"preMessageParsed"
PrefixedMessage"prefixedMessage"
PresenceUpdate"presenceUpdate"-
RateLimit"rateLimit"-
Raw"raw"-
ShardDisconnect"shardDisconnect"-
ShardError"shardError"-
ShardReady"shardReady"-
ShardReconnecting"shardReconnecting"-
ShardResume"shardResume"-
StageInstanceCreate"stageInstanceCreate"-
StageInstanceDelete"stageInstanceDelete"-
StageInstanceUpdate"stageInstanceUpdate"-
ThreadCreate"threadCreate"-
ThreadDelete"threadDelete"-
ThreadListSync"threadListSync"-
ThreadMemberUpdate"threadMemberUpdate"-
ThreadMembersUpdate"threadMembersUpdate"-
ThreadUpdate"threadUpdate"-
TypingStart"typingStart"-
UnknownChatInputCommand"unknownChatInputCommand"
UnknownContextMenuCommand"unknownContextMenuCommand"
UnknownMessageCommand"unknownMessageCommand"
UnknownMessageCommandName"unknownMessageCommandName"
UserUpdate"userUpdate"-
VoiceServerUpdate"voiceServerUpdate"-
VoiceStateUpdate"voiceStateUpdate"-
Warn"warn"-
WebhooksUpdate"webhookUpdate"-

Defined in

projects/framework/src/lib/types/Events.ts:18


InteractionHandlerFilters

Const InteractionHandlerFilters: Map<InteractionHandlerTypes, (interaction: Interaction<CacheType>) => boolean>

Defined in

projects/framework/src/lib/structures/InteractionHandlerStore.ts:73


PreconditionConditionAnd

Const PreconditionConditionAnd: IPreconditionCondition

Defined in

projects/framework/src/lib/utils/preconditions/conditions/PreconditionConditionAnd.ts:8


PreconditionConditionOr

Const PreconditionConditionOr: IPreconditionCondition

Defined in

projects/framework/src/lib/utils/preconditions/conditions/PreconditionConditionOr.ts:9


container

Const container: Container

Defined in

node_modules/@sapphire/pieces/dist/index.d.ts:645


none

Const none: None

Defined in

node_modules/@sapphire/result/dist/lib/Option/None.d.ts:52


postInitialization

Const postInitialization: unique symbol

Defined in

projects/framework/src/lib/plugins/symbols.ts:3


postLogin

Const postLogin: unique symbol

Defined in

projects/framework/src/lib/plugins/symbols.ts:6


preGenericsInitialization

Const preGenericsInitialization: unique symbol

Defined in

projects/framework/src/lib/plugins/symbols.ts:1


preInitialization

Const preInitialization: unique symbol

Defined in

projects/framework/src/lib/plugins/symbols.ts:2


preLogin

Const preLogin: unique symbol

Defined in

projects/framework/src/lib/plugins/symbols.ts:5


version

Const version: string = '[VI]{version}[/VI]'

Defined in

projects/framework/src/index.ts:113

Functions

err

err(): Err<unknown>

Returns

Err<unknown>

Defined in

node_modules/@sapphire/result/dist/lib/Result/Err.d.ts:57

err<E>(x): Err<E>

Type parameters

NameDescription
E-

Parameters

NameTypeDescription
xE

Returns

Err<E>

Defined in

node_modules/@sapphire/result/dist/lib/Result/Err.d.ts:64


ok

ok(): Ok<unknown>

Returns

Ok<unknown>

Defined in

node_modules/@sapphire/result/dist/lib/Result/Ok.d.ts:60

ok<T>(x): Ok<T>

Type parameters

NameDescription
T-

Parameters

NameTypeDescription
xT

Returns

Ok<T>

Defined in

node_modules/@sapphire/result/dist/lib/Result/Ok.d.ts:67


some

some<T>(value): Some<T>

Type parameters

Name
T

Parameters

NameType
valueT

Returns

Some<T>

Defined in

node_modules/@sapphire/result/dist/lib/Option/Some.d.ts:61