meinu
GitHub
S0n1c
Preparing search index...
Command
Class Command<Inst>
Command class.
Type Parameters
Inst
=
Meinu
Meinu instance It's a builder for slash commands, buttons, etc.
Index
Constructors
constructor
Properties
name
description
type
integration_
types
contexts
options
subcommands
check
Permission
owners
Only
nsfw
Accessors
global
Methods
add
Sub
Command
Group
add
Sub
Commands
command
Info
add
Handler
set
Permission
handle
Constructors
constructor
new
Command
<
Inst
=
Meinu
>
(
info
:
CommandInfo
)
:
Command
<
Inst
>
Type Parameters
Inst
=
Meinu
Parameters
info
:
CommandInfo
Returns
Command
<
Inst
>
Properties
name
name
:
Locales
description
description
:
Locales
type
type
:
undefined
|
ChatInput
|
User
|
Message
integration_
types
integration_types
:
ApplicationIntegrationType
[]
contexts
contexts
:
InteractionContextType
[]
options
options
:
ApplicationCommandOptionData
[]
= []
subcommands
subcommands
:
Command
<
Inst
>
[]
= []
check
Permission
checkPermission
:
CommandHasPermission
<
Inst
>
owners
Only
ownersOnly
:
boolean
nsfw
nsfw
:
boolean
Accessors
global
get
global
()
:
boolean
Returns
boolean
Methods
add
Sub
Command
Group
addSubCommandGroup
(
group
:
CommandSubGroup
<
Command
<
Inst
>
>
)
:
this
Parameters
group
:
CommandSubGroup
<
Command
<
Inst
>
>
Returns
this
add
Sub
Commands
addSubCommands
(
cmds
:
Command
<
Inst
>
[]
)
:
this
Parameters
cmds
:
Command
<
Inst
>
[]
Returns
this
command
Info
commandInfo
()
:
CommandInfoExport
Returns
CommandInfoExport
add
Handler
addHandler
<
T
extends
keyof
CommandInteractionHandlers
<
Inst
>
>
(
type
:
T
,
handler
:
CommandInteractionHandlers
<
Inst
>
[
T
]
,
)
:
this
Type Parameters
T
extends
keyof
CommandInteractionHandlers
<
Inst
>
Parameters
type
:
T
handler
:
CommandInteractionHandlers
<
Inst
>
[
T
]
Returns
this
set
Permission
setPermission
(
cb
:
CommandHasPermission
<
Inst
>
)
:
this
Parameters
cb
:
CommandHasPermission
<
Inst
>
Returns
this
handle
handle
<
Type
extends
keyof
CommandInteractionHandlers
<
Inst
>
>
(
type
:
Type
,
bot
:
Inst
,
int
:
Interaction
,
)
:
Promise
<
void
|
Message
<
boolean
>
|
InteractionResponse
<
boolean
>
>
Type Parameters
Type
extends
keyof
CommandInteractionHandlers
<
Inst
>
Parameters
type
:
Type
bot
:
Inst
int
:
Interaction
Returns
Promise
<
void
|
Message
<
boolean
>
|
InteractionResponse
<
boolean
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
name
description
type
integration_
types
contexts
options
subcommands
check
Permission
owners
Only
nsfw
Accessors
global
Methods
add
Sub
Command
Group
add
Sub
Commands
command
Info
add
Handler
set
Permission
handle
GitHub
S0n1c
meinu
Loading...
Command class.