$messageAttachment
This function retrieves the URL of the first attachment found in a message. If a message has multiple attachments, only the URL of the first one will be returned.
Usage:
$messageAttachment
Example:
This example demonstrates how $messageAttachment
can be used.
Explanation:
- The member sends the command
!!exec $messageAttachment
. - The bot returns the URL of the first attachment in the member's message. If the message does not contain any attachment it will return an empty string.