Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node provides advanced Discord server management tools, focusing on analytics, moderation, backup, automation, and insights. Specifically, the 'Moderation' resource with the 'Scan for Links' operation scans messages in a specified Discord channel to identify and extract URLs. It collects data on messages containing links, counts total links, identifies unique domains, and provides detailed information about each message with links. This is useful for moderators to monitor and manage link sharing within their server channels, helping to detect potential spam or inappropriate content.
Use Case Examples
- A moderator wants to scan a channel for all URLs shared in the last 100 messages to identify suspicious or harmful links.
- A server admin needs to generate a report of unique domains shared in a channel to understand external content sources.
- A community manager wants to track how many messages contain links and which users are sharing them.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) where the scan will be performed. |
| Channel ID | The ID of the specific channel within the guild to scan for messages containing links. |
| Time Range (Days) | Number of days to analyze messages (though for this operation, the code fetches the latest 100 messages, so this may be informational or for other operations). |
| Additional Options | Collection of optional parameters to customize the scan, such as including bot messages, minimum messages for analysis, including attachments, spam threshold, inactive days, and max limit of items to process. |
Output
JSON
channelId- The ID of the scanned channel.totalMessages- Total number of messages fetched from the channel.messagesWithLinks- Number of messages that contain one or more URLs.totalLinks- Total count of all URLs found in the messages.uniqueDomains- Count of unique domain names extracted from the URLs.domains- List of unique domain names found in the messages.messages- Array of message objects containing details such as message ID, author username and ID, list of links found, count of links, and timestamp.
Dependencies
- Discord API access via a bot token credential
Troubleshooting
- Ensure the provided Guild ID and Channel ID are correct and that the bot has permissions to read messages in the specified channel.
- The node fetches only the latest 100 messages; if more extensive scanning is needed, consider adjusting the implementation or running multiple scans.
- If the channel is not text-based or inaccessible, the node will throw an error indicating the channel is not found or not text-based.
- Errors related to Discord API authentication usually indicate invalid or expired bot token credentials; verify and update the credentials as needed.