BaseInteraction#

The base interaction class.

Constructor#

new BaseInteraction(client, data)#

The constructor of the base interaction class.

Parameters:
NameTypeDescription
clientClient

The client

dataBaseInteractionData

The data of the base interaction

Members#

betaOnly#

If the base interaction is beta access only

category#

The category of the base interaction

channelOnly#

The types of channel the base interaction is executable in

client :Client#

The client

Type:
  • Client

clientPermissions#

The required permissions for the client to execute the base interaction

cooldown#

The cooldown of the base interaction in seconds

cooldowns :Map.<Snowflake, Boolean>#

The map with all cooldowns

Type:
  • Map.<Snowflake, Boolean>

defaultMemberPermissions#

The permissions required for the member to be able to use / see the base interaction

defer#

If the base interaction should be deferred

deployEnabled#

If the base interaction is enabled for deploying

devOnly#

If the base interaction can only be executed by developers

dirname#

The dirname of the saved location of the base interaction

dmEnabled#

If the base interaction is enabled in dms by default

enabled#

If the base interaction is enabled

ephemeral#

If the response is ephemeral

experiment#

The experiment data of the base interaction

guildOnly#

If the base interaction is only executable in guilds

id#

The id of the base interaction

location#

The location of the base interaction

location#

Sets the location of the base interaction

name#

The name of the base interaction

nameLocalizations#

The localization names of the base interaction

nsfw#

If the base interaction is nsfw

ownerOnly#

If the base interaction is owner access only

premiumOnly#

If the base interaction is premium access only

type#

The type of the base interaction

userPermissions#

The required permissions for the user to execute the base interaction

Methods#

toJSON() → {BaseInteractionData}#

The full data of the base interaction

Returns:
Type: 
BaseInteractionData