Sign In

$awaitComponent[]

Awaits a component, executing the code as the interaction context, returns bool depending on whether the interaction was received

v1.4.0+ Requires Brackets

Usage

$awaitComponent[;;;;]

Arguments

NameTypeRequiredDescription
channel ID
ChannelYesThe channel to pull message from
message ID
MessageYesThe message to await component on
filterConditional
StringYesThe filter to run for every interaction received after this, this is called with interaction context
success code
StringYesThe code to execute on success, this is called with interaction context
time
TimeYesThe max time to wait for a component

Output

Boolean

Was this page helpful?