Properties Static
Readonly
add Slash Confirmation Option add Slash Confirmation Option : ( ( i ) => SlashCommandBooleanOption ) = addSlashConfirmationOption
Type declaration ( i ) : SlashCommandBooleanOption Parameters i : SlashCommandBooleanOption Returns SlashCommandBooleanOption Static
Readonly
channel Type To String channel Type To String : ( ( type ) => string ) = channelTypeToString
Type declaration ( type ) : string Returns string Static
Readonly
confirmation Button Row confirmation Button Row : ( ( client ) => ActionRowBuilder < ButtonBuilder > ) = confirmationButtonRow
Type declaration ( client ) : ActionRowBuilder < ButtonBuilder > Returns ActionRowBuilder < ButtonBuilder > Static
Readonly
disable Components disable Components : ( ( components ) => ( APIActionRowComponent < APIMessageActionRowComponent > | AnyComponentBuilder | JSONEncodable < APIActionRowComponent < APIMessageActionRowComponent > > | ActionRowData < ( JSONEncodable<APIActionRowComponentTypes> | ActionRowComponentData) > ) [] ) = disableComponents
Type declaration ( components ) : ( APIActionRowComponent < APIMessageActionRowComponent > | AnyComponentBuilder | JSONEncodable < APIActionRowComponent < APIMessageActionRowComponent > > | ActionRowData < ( JSONEncodable<APIActionRowComponentTypes> | ActionRowComponentData) > ) [] Parameters components : ( APIActionRowComponent < APIMessageActionRowComponent > | AnyComponentBuilder | JSONEncodable < APIActionRowComponent < APIMessageActionRowComponent > > | ActionRowData < ( JSONEncodable<APIActionRowComponentTypes> | ActionRowComponentData) > ) [] Returns ( APIActionRowComponent < APIMessageActionRowComponent > | AnyComponentBuilder | JSONEncodable < APIActionRowComponent < APIMessageActionRowComponent > > | ActionRowData < ( JSONEncodable<APIActionRowComponentTypes> | ActionRowComponentData) > ) [] Static
Readonly
paginator paginator : ( ( id , client , pages , interaction , duration ? , options ? ) => Promise < void > ) = paginator
Type declaration ( id , client , pages , interaction , duration ? , options ? ) : Promise < void > Parameters id : string client : Client < boolean > pages : BaseMessageOptions [] interaction : RepliableInteraction duration : number = UnitConstants.MS_IN_ONE_HOUR Optional
options : InteractionReplyDynamicOptions Returns Promise < void > Static
Readonly
prompt Confirmation prompt Confirmation : ( ( __namedParameters ) => Promise < false | RepliableInteraction | "expired" > ) = promptConfirmation
Type declaration ( __namedParameters ) : Promise < false | RepliableInteraction | "expired" > Returns Promise < false | RepliableInteraction | "expired" > Static
Readonly
reply Dynamic reply Dynamic : ( < I > ( client ,
interaction ,
content ,
options ? ) => Promise < null | Message < boolean > > ) = replyDynamic Static
Readonly
reply Fn reply Fn : ( < I > ( client ,
interaction ,
options ? ) => ( ( content ) => Promise < null > ) | ( ( options ) => Promise < Message < boolean > > ) | ( ( options ) => Promise < Message < boolean > > ) ) = replyFn Static
Readonly
require Available Guild Static
Readonly
require Guild Type declaration < I > ( client , interaction ) : interaction is AvailableGuildInteraction < I > Type Parameters I extends BaseInteraction < CacheType > Parameters client : Client < boolean > interaction : BaseInteraction < CacheType > Static
Readonly
resolve Rows From Components resolve Rows From Components : ( ( components ) => ( null | ButtonBuilder | ChannelSelectMenuBuilder | MentionableSelectMenuBuilder | RoleSelectMenuBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder | TextInputBuilder ) [] [] ) = resolveRowsFromComponents
Type declaration ( components ) : ( null | ButtonBuilder | ChannelSelectMenuBuilder | MentionableSelectMenuBuilder | RoleSelectMenuBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder | TextInputBuilder ) [] [] Parameters components : ( null | AnyComponentBuilder ) [] Returns ( null | ButtonBuilder | ChannelSelectMenuBuilder | MentionableSelectMenuBuilder | RoleSelectMenuBuilder | StringSelectMenuBuilder | UserSelectMenuBuilder | TextInputBuilder ) [] [] Static
Readonly
slash Confirmation Option Handler slash Confirmation Option Handler : ( ( client , interaction ) => boolean ) = slashConfirmationOptionHandler
Type declaration ( client , interaction ) : boolean Parameters client : Client < boolean > interaction : ChatInputCommandInteraction < CacheType > Returns boolean
Reply to an interaction - dynamically resolves the reply function, and calls it with the given content, util to avoid having to directly invoke the replyFn method, as explained in it's declaration
Note: It definitely needs the client, as it needs to be able to log critical errors if they are encountered while replying to interactions - it's worth all the client not null checks