$disableComponents
$disableComponents
disables all components for a specific message.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID | number | Channel ID of the command that has been executed. | true |
messageID | number | The ID of the message that will disable the components. | true |
type? | string | The type of component that will be disabled. 1. all (default) 2. button 3. selectmenu | false |
Example(s)
This will send a message with a button that will be disabled after 5 seconds.
This will disable all the components of the message. You can either leave the type option empty or specify all
.