detritus

ComponentContextclass

Class Utils.ComponentContext from detritus-client.

On this page
import { Utils } from 'detritus-client';

Utils.ComponentContext;
68 properties12 methodssrc/utils/components/context.ts:17

Constructor

Properties

client
readonly
interaction
readonly
metadata?
Record<string, any>
optional

Accessors

_responding
Promise<boolean> | null
get
application
get
applicationCommandPermissions
applicationEmojis
applicationId
string
get
applications
appPermissions
bigint
get
attachmentSizeLimit
number
get
channel
Channel | null
get
channelId
string
get
channels
get
cluster
get
commandClient
get
customId
string
get
emojis
get
entitlements
gateway
Socket
get
guild
Guild | null
get
guildId
string | undefined
get
guildLocale
string | undefined
get
guildPartial
{ features: string[]; id: string; locale: string } | undefined
get
guilds
get
guildScheduledEvents
id
string
get
inDm
boolean
get
inDmWithBot
boolean
get
inDmWithUsers
boolean
get
interactionCommandClient
interactionId
string
get
interactions
isBotPresent
boolean
get
isFromGuildInstall
boolean
get
isFromUserInstall
boolean
get
locale
string | undefined
get
manager
ClusterProcessChild | null
get
maxAttachmentSize
number
get
me
Member | null
get
member
Member | undefined
get
members
get
messages
get
owners
get
presences
get
relationships
responded
boolean
get
response
Message | null
get
responseDeleted
boolean | undefined
get
responseId
string | undefined
get
rest
RestClient
get
roles
get
sessions
get
shardCount
number
get
shardId
number
get
stageInstances
stickers
get
token
string
get
typings
user
get
userId
string
get
users
get
voiceCalls
voiceChannel
get
voiceConnection
VoiceConnection | undefined
get
voiceConnections
voiceState
VoiceState | null
get
voiceStates

Methods