Moderation
editButtonOf
$editButtonOf — Edits a button component of a message
Edits a button component of a message
Syntax
$editButtonOf[channelID;messageID;customID;newcustomID;(label);(style);(emoji);(disabled)]
Parameters
- channelID (id, required) — The channel id to pull message from
- messageID (id, required) — The message to edit button for
- customID (id, required) — The custom id to find the component
- newcustomID (id, required) — The new custom id for this component
- label (text, optional) — The new button label
- style (text, optional) — The new style for this button
- emoji (text, optional) — The new emoji for this button
- disabled (boolean, optional) — Whether to disable the button
Return Value
- Boolean.
Usage
$editButtonOf[channelID;messageID;customID;newcustomID;(label);(style);(emoji);(disabled)] → result
Example
$sendMessage[$editButtonOf[30;1000;yes;ok;Valider;success]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.