detritus
On this page

Interaction Structure

import { Structures } from 'detritus-client';

Structures.Interaction;
38 properties12 methods15 inheritedsrc/structures/interaction.ts:89

Constructor

Properties

_channel?
optional
_deleted
boolean
readonly
Default false
_entitlements?
optional
_responding
Promise<boolean> | null
applicationId
string
Default ''
appPermissions
bigint
Default Permissions.NONE
attachmentSizeLimit
number
Default 0
authorizingIntegrationOwners
Partial<Record<ApplicationIntegrationTypes, string>>
Default {}
channelId?
string
optional
client
readonly
Inherited from BaseStructure.client
context?
guildId?
string
optional
guildLocale?
string
optional
guildPartial?
{ features: string[]; id: string; locale: string }
optional
id
string
Default ''
locale?
string
optional
member?
optional
message?
optional
responded
boolean
Default false
responseDeleted?
boolean
optional
responseId?
string
optional
token
string
Default ''
type
Default InteractionTypes.PING
user
version
number
Default 0

Accessors

channel
Channel | null
get
createdAt
Date
get
createdAtUnix
number
get
deleted
boolean
get
entitlements
guild
Guild | null
get
inDm
boolean
get
inDmWithBot
boolean
get
inDmWithUsers
boolean
get
isBotPresent
boolean
get

If the bot user is in the interaction's location (a guild it's a member of or its own dm), so it can use the api there authorizingIntegrationOwners isn't used since it only says which install authorized the command, not if the bot user is in the guild

isClone
boolean
get
Inherited from BaseStructure.isClone
isFromApplicationCommand
boolean
get
isFromGuildInstall
boolean
get
isFromMessageComponent
boolean
get
isFromModalSubmit
boolean
get
isFromUserInstall
boolean
get
response
Message | null
get
shardId
number
get
Inherited from BaseStructure.shardId
userId
string
get

Methods