$hasAttachment
$hasAttachment
will return either true or false depending on if the message has an attachment.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
messageId? | number | Which hasAttachment argument will be returned, leave it empty to return the whole hasAttachment. | false |
channelId? | number | Which hasAttachment argument will be returned, leave it empty to return the whole hasAttachment. | false |
Example(s)
This will check if your message has an attachment attached: