Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node, named 'Discord Advanced', provides advanced tools for interacting with Discord servers, including analytics, moderation, backup, automation, and insights. Specifically, the 'Export Server Structure' operation under the 'Backup' resource exports the complete structure of a Discord server, including channels and roles, in a chosen format (JSON, CSV, or HTML). This is useful for server administrators who want to back up or document their server's configuration.
Use Case Examples
- Export the entire server structure of a Discord guild to JSON format for backup purposes.
- Generate an HTML report of the server's channels and roles for documentation or auditing.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) to export the structure from. |
| Export Format | The format in which the server structure will be exported (JSON, CSV, or HTML). |
| Additional Options | Optional settings to customize the export, such as including bots, minimum messages, attachments, spam threshold, inactive days, and max limit for processing items. |
Output
JSON
guildId- The ID of the Discord server.guildName- The name of the Discord server.exportedAt- Timestamp when the export was performed.channels- Array of channel objects including id, name, type, position, and parentId.roles- Array of role objects including id, name, color, position, and permissions.
Dependencies
- Discord API accessed via discord.js library using a bot token credential
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has access to the guild.
- Verify the bot has permissions to fetch channels and roles in the guild.
- If the channel or guild is not found or not accessible, the node will throw an error indicating the issue.
- Check that the bot token credential is valid and has the necessary intents enabled for fetching guild data.
Links
- discord.js Client Documentation - Official documentation for the discord.js Client class used to interact with Discord API.
- Discord Developer Portal - Official Discord API documentation and developer resources.