Sign In

$addButtonTo[]

Adds a button component to the newest row in a message

v1.5.0+ Requires Brackets

Usage

$addButtonTo[;;;;;;]

Arguments

NameTypeRequiredDescription
channel ID
TextChannelYesThe channel id to pull message from
message ID
MessageYesThe message to add button to
custom ID
StringYesThe custom id for this component
label
StringYesThe button label
style
YesThe style for this button
emoji
StringNoThe emoji for this button
disabled
BooleanNoWhether to disable the button

Output

Boolean

Was this page helpful?