Moderation
ignoreLinks
$ignoreLinks
A function guard that silently stops execution if the triggering message contains an HTTP/HTTPS link.
Syntax
$ignoreLinks
$ignoreLinks
The function guard $ignoreLinks detects the presence of HTTP/HTTPS links in the triggering message. If a link is found, command execution is silently interrupted.
Syntax
$ignoreLinks
Parameters
No parameters. $ignoreLinks is used on its own.
Behavior
- Analyzes the content of the message searching for
http://orhttps://. - If a link is found, the command is immediately interrupted without a message.
- If no link is found, the command continues normally.
- Detects all standard links (HTTP and HTTPS), but not links like
discord.gg,ftp://, etc.
Examples
Anti-link spam command
$ignoreLinks
$sendMessage[Your message was processed (no link detected).]
With custom error message
$if[$messageContains[https://;http://]==true]
$sendMessage[❌ Links are forbidden in this command.]
$stop
$endif
$sendMessage[Processing OK.]
Log attempts with links
$if[$messageContains[https://;http://]==true]
$log[Link blocked: $message — Author: $userName ($authorID)]
$stop
$endif
$sendMessage[Message processed.]
Notes
$ignoreLinksis silent: the user receives no notification. To inform the user, use manual checking with$messageContains.- It does not detect links in the format
discord.gg/inviteor hidden Markdown links[text](https://...). To cover these cases, use$messageContains. $ignoreLinksonly checks the triggering message, not embeds or attachments.- Ideal for channels where links are forbidden (spam/phishing prevention).