PopiiOption
Popii / PopiiOption
Interface: PopiiOption<TState, TInput, TLocals>
Section titled “Interface: PopiiOption<TState, TInput, TLocals>”Defined in: types.ts:42
Type Parameters
Section titled “Type Parameters”TState
Section titled “TState”TState = any
TInput
Section titled “TInput”TInput = any
TLocals
Section titled “TLocals”TLocals = Record<string, any>
Methods
Section titled “Methods”
optionaldo(pop):void|Promise<void>
Defined in: types.ts:54
Parameters
Section titled “Parameters”Pop<TState, TInput, TLocals>
Returns
Section titled “Returns”void | Promise<void>
Properties
Section titled “Properties”name:
string
Defined in: types.ts:43
nameLocalizations?
Section titled “nameLocalizations?”
optionalnameLocalizations?:Partial<Record<"id"|"en-US"|"en-GB"|"bg"|"zh-CN"|"zh-TW"|"hr"|"cs"|"da"|"nl"|"fi"|"fr"|"de"|"el"|"hi"|"hu"|"it"|"ja"|"ko"|"lt"|"no"|"pl"|"pt-BR"|"ro"|"ru"|"es-ES"|"es-419"|"sv-SE"|"th"|"tr"|"uk"|"vi",string>>
Defined in: types.ts:44
description
Section titled “description”description:
string
Defined in: types.ts:45
descriptionLocalizations?
Section titled “descriptionLocalizations?”
optionaldescriptionLocalizations?:Partial<Record<"id"|"en-US"|"en-GB"|"bg"|"zh-CN"|"zh-TW"|"hr"|"cs"|"da"|"nl"|"fi"|"fr"|"de"|"el"|"hi"|"hu"|"it"|"ja"|"ko"|"lt"|"no"|"pl"|"pt-BR"|"ro"|"ru"|"es-ES"|"es-419"|"sv-SE"|"th"|"tr"|"uk"|"vi",string>>
Defined in: types.ts:46
type:
ApplicationCommandOptionType
Defined in: types.ts:47
required?
Section titled “required?”
optionalrequired?:boolean
Defined in: types.ts:48
autocomplete?
Section titled “autocomplete?”
optionalautocomplete?:boolean| ((pop) =>void|Promise<void|object[]> |object[])
Defined in: types.ts:49
choices?
Section titled “choices?”
optionalchoices?:object[]
Defined in: types.ts:50
name:
string
value:
string|number
options?
Section titled “options?”
optionaloptions?:PopiiOption<TState,any,TLocals>[]
Defined in: types.ts:51
minValue?
Section titled “minValue?”
optionalminValue?:number
Defined in: types.ts:52
maxValue?
Section titled “maxValue?”
optionalmaxValue?:number
Defined in: types.ts:53
guildOnly?
Section titled “guildOnly?”
optionalguildOnly?:boolean
Defined in: types.ts:55
ownerOnly?
Section titled “ownerOnly?”
optionalownerOnly?:boolean
Defined in: types.ts:56
permissions?
Section titled “permissions?”
optionalpermissions?: (bigint|"CreateInstantInvite"|"KickMembers"|"BanMembers"|"Administrator"|"ManageChannels"|"ManageGuild"|"AddReactions"|"ViewAuditLog"|"PrioritySpeaker"|"Stream"|"ViewChannel"|"SendMessages"|"SendTTSMessages"|"ManageMessages"|"EmbedLinks"|"AttachFiles"|"ReadMessageHistory"|"MentionEveryone"|"UseExternalEmojis"|"ViewGuildInsights"|"Connect"|"Speak"|"MuteMembers"|"DeafenMembers"|"MoveMembers"|"UseVAD"|"ChangeNickname"|"ManageNicknames"|"ManageRoles"|"ManageWebhooks"|"ManageEmojisAndStickers"|"ManageGuildExpressions"|"UseApplicationCommands"|"RequestToSpeak"|"ManageEvents"|"ManageThreads"|"CreatePublicThreads"|"CreatePrivateThreads"|"UseExternalStickers"|"SendMessagesInThreads"|"UseEmbeddedActivities"|"ModerateMembers"|"ViewCreatorMonetizationAnalytics"|"UseSoundboard"|"CreateGuildExpressions"|"CreateEvents"|"UseExternalSounds"|"SendVoiceMessages"|"SetVoiceChannelStatus"|"SendPolls"|"UseExternalApps"|"PinMessages"|"BypassSlowmode")[]
Defined in: types.ts:57
allowedRoles?
Section titled “allowedRoles?”
optionalallowedRoles?:string[]
Defined in: types.ts:58
deniedRoles?
Section titled “deniedRoles?”
optionaldeniedRoles?:string[]
Defined in: types.ts:59
allowedChannels?
Section titled “allowedChannels?”
optionalallowedChannels?:string[]
Defined in: types.ts:60
cooldown?
Section titled “cooldown?”
optionalcooldown?:number| {ms:number;uses?:number;scope?:"user"|"guild"|"global"; }
Defined in: types.ts:61
quota?
Section titled “quota?”
optionalquota?:object
Defined in: types.ts:62
limit:
number
timeframe
Section titled “timeframe”timeframe:
number
scope?
Section titled “scope?”
optionalscope?:"user"|"guild"|"global"
ephemeral?
Section titled “ephemeral?”
optionalephemeral?:boolean
Defined in: types.ts:63
middlewares?
Section titled “middlewares?”
optionalmiddlewares?:PopiiMiddleware<TState,TInput,TLocals>[]
Defined in: types.ts:64
schema?
Section titled “schema?”
optionalschema?:PopiiSchema<any>
Defined in: types.ts:65
autocompleteCache?
Section titled “autocompleteCache?”
optionalautocompleteCache?:object
Defined in: types.ts:66
ttlMs:
number
scope?
Section titled “scope?”
optionalscope?:"user"|"guild"|"global"
autocompleteTimeoutMs?
Section titled “autocompleteTimeoutMs?”
optionalautocompleteTimeoutMs?:number
Defined in: types.ts:67