FunctionsMessage Functions
$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:
$messageAttachmentExample:
This example demonstrates how $messageAttachment can be used.
Member
9/5/2026
!!exec $messageAttachment
Custom Command
APP
9/5/2026
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.
Function Difficulty: Easy
Tags: Attachment Message