Preparing search index...
The search index is not available
@antibot/interactions
@antibot/interactions
Interactions
Class Interactions
Index
Constructors
constructor
Properties
api
options
request
Accessors
botID
bot
Token
Methods
create
Global
Command
create
Guild
Command
delete
Global
Command
delete
Guild
Command
edit
Global
Command
edit
Guild
Command
edit
Guild
Command
Permissions
get
Global
Command
get
Global
Commands
get
Guild
Command
get
Guild
Command
Permissions
get
Guild
Commands
overwrite
Global
Commands
overwrite
Guild
Commands
Constructors
constructor
new
Interactions
(
options
)
:
Interactions
Parameters
options
:
{
botID
:
string
;
botToken
:
string
;
debug
?:
boolean
;
publicKey
:
string
;
}
botID
:
string
bot
Token
:
string
Optional
debug
?:
boolean
public
Key
:
string
Returns
Interactions
Properties
Private
api
api
:
string
Protected
Readonly
options
options
:
{
botID
:
string
;
botToken
:
string
;
debug
?:
boolean
;
publicKey
:
string
;
}
Type declaration
botID
:
string
bot
Token
:
string
Optional
debug
?:
boolean
public
Key
:
string
Private
request
request
:
RequestManager
Accessors
botID
get
botID
(
)
:
string
Returns
string
bot
Token
get
botToken
(
)
:
string
Returns
string
Methods
create
Global
Command
create
Global
Command
<
T
>
(
command
)
:
Promise
<
ApplicationCommand
>
Type Parameters
T
Parameters
command
:
ICommand
Returns
Promise
<
ApplicationCommand
>
create
Global
Command
<
T
>
(
command
)
:
Promise
<
void
>
Type Parameters
T
Parameters
command
:
ICommand
Returns
Promise
<
void
>
create
Guild
Command
create
Guild
Command
<
T
>
(
guildId
,
command
)
:
Promise
<
ApplicationCommand
>
Type Parameters
T
Parameters
guildId
:
string
command
:
ICommand
Returns
Promise
<
ApplicationCommand
>
create
Guild
Command
<
T
>
(
guildId
,
command
)
:
Promise
<
void
>
Type Parameters
T
Parameters
guildId
:
string
command
:
ICommand
Returns
Promise
<
void
>
delete
Global
Command
delete
Global
Command
(
commandId
)
:
Promise
<
void
>
Parameters
commandId
:
string
Returns
Promise
<
void
>
delete
Guild
Command
delete
Guild
Command
(
guildId
,
commandId
)
:
Promise
<
void
>
Parameters
guildId
:
string
commandId
:
string
Returns
Promise
<
void
>
edit
Global
Command
edit
Global
Command
<
T
>
(
commandId
,
command
)
:
Promise
<
ApplicationCommand
>
Type Parameters
T
Parameters
commandId
:
string
command
:
ICommand
Returns
Promise
<
ApplicationCommand
>
edit
Global
Command
<
T
>
(
commandId
,
command
)
:
Promise
<
void
>
Type Parameters
T
Parameters
commandId
:
string
command
:
ICommand
Returns
Promise
<
void
>
edit
Guild
Command
edit
Guild
Command
<
T
>
(
options
)
:
Promise
<
ApplicationCommand
>
Type Parameters
T
Parameters
options
:
{
command
:
ICommand
;
commandId
:
string
;
guildId
:
string
;
}
command
:
ICommand
command
Id
:
string
guild
Id
:
string
Returns
Promise
<
ApplicationCommand
>
edit
Guild
Command
<
T
>
(
options
)
:
Promise
<
void
>
Type Parameters
T
Parameters
options
:
{
command
:
ICommand
;
commandId
:
string
;
guildId
:
string
;
}
command
:
ICommand
command
Id
:
string
guild
Id
:
string
Returns
Promise
<
void
>
edit
Guild
Command
Permissions
edit
Guild
Command
Permissions
<
T
>
(
options
)
:
Promise
<
ApplicationCommandPermissions
>
Type Parameters
T
Parameters
options
:
{
commandId
:
string
;
guildId
:
string
;
permissions
:
ApplicationCommandPermissions
[]
;
}
command
Id
:
string
guild
Id
:
string
permissions
:
ApplicationCommandPermissions
[]
Returns
Promise
<
ApplicationCommandPermissions
>
edit
Guild
Command
Permissions
<
T
>
(
options
)
:
Promise
<
void
>
Type Parameters
T
Parameters
options
:
{
commandId
:
string
;
guildId
:
string
;
permissions
:
ApplicationCommandPermissions
[]
;
}
command
Id
:
string
guild
Id
:
string
permissions
:
ApplicationCommandPermissions
[]
Returns
Promise
<
void
>
get
Global
Command
get
Global
Command
<
T
>
(
commandId
)
:
Promise
<
ApplicationCommand
>
Type Parameters
T
Parameters
commandId
:
string
Returns
Promise
<
ApplicationCommand
>
get
Global
Command
<
T
>
(
commandId
)
:
Promise
<
void
>
Type Parameters
T
Parameters
commandId
:
string
Returns
Promise
<
void
>
get
Global
Commands
get
Global
Commands
<
T
>
(
)
:
Promise
<
ApplicationCommand
[]
>
Type Parameters
T
Returns
Promise
<
ApplicationCommand
[]
>
get
Global
Commands
<
T
>
(
)
:
Promise
<
void
>
Type Parameters
T
Returns
Promise
<
void
>
get
Guild
Command
get
Guild
Command
<
T
>
(
guildId
,
commandId
)
:
Promise
<
ApplicationCommand
>
Type Parameters
T
Parameters
guildId
:
string
commandId
:
string
Returns
Promise
<
ApplicationCommand
>
get
Guild
Command
<
T
>
(
guildId
,
commandId
)
:
Promise
<
void
>
Type Parameters
T
Parameters
guildId
:
string
commandId
:
string
Returns
Promise
<
void
>
get
Guild
Command
Permissions
get
Guild
Command
Permissions
<
T
>
(
guildId
)
:
Promise
<
ApplicationCommandPermissions
[]
>
Type Parameters
T
Parameters
guildId
:
string
Returns
Promise
<
ApplicationCommandPermissions
[]
>
get
Guild
Command
Permissions
<
T
>
(
guildId
)
:
Promise
<
void
>
Type Parameters
T
Parameters
guildId
:
string
Returns
Promise
<
void
>
get
Guild
Commands
get
Guild
Commands
<
T
>
(
guildId
)
:
Promise
<
ApplicationCommand
[]
>
Type Parameters
T
Parameters
guildId
:
string
Returns
Promise
<
ApplicationCommand
[]
>
get
Guild
Commands
<
T
>
(
guildId
)
:
Promise
<
void
>
Type Parameters
T
Parameters
guildId
:
string
Returns
Promise
<
void
>
overwrite
Global
Commands
overwrite
Global
Commands
(
command
)
:
Promise
<
void
>
Parameters
command
:
ICommand
Returns
Promise
<
void
>
overwrite
Guild
Commands
overwrite
Guild
Commands
(
guildId
,
command
)
:
Promise
<
void
>
Parameters
guildId
:
string
command
:
ICommand
|
ICommand
[]
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
api
options
request
botID
bot
Token
create
Global
Command
create
Guild
Command
delete
Global
Command
delete
Guild
Command
edit
Global
Command
edit
Guild
Command
edit
Guild
Command
Permissions
get
Global
Command
get
Global
Commands
get
Guild
Command
get
Guild
Command
Permissions
get
Guild
Commands
overwrite
Global
Commands
overwrite
Guild
Commands
@antibot/interactions
Loading...
Generated using
TypeDoc