Actions32
- Analytics Actions
- Moderation Actions
- Backup Actions
- Automation Actions
- Insights Actions
Overview
This node provides advanced Discord server management tools, including analytics, moderation, backup, automation, and insights. Specifically, the 'Export Role Configuration' operation under the 'Backup' resource exports all roles and their permissions from a specified Discord server (guild). This is useful for server administrators who want to back up or audit their server's role settings. For example, an admin can export role configurations in JSON, CSV, or HTML format for documentation or migration purposes.
Use Case Examples
- Export all roles and permissions from a Discord server to JSON format for backup.
- Export role configurations in CSV format to review permissions in a spreadsheet.
- Generate an HTML report of all roles and permissions for easy sharing with team members.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) from which roles will be exported. |
| Export Format | The format in which the role configuration data will be exported (JSON, CSV, or HTML). |
| Additional Options | Optional settings that can modify the export behavior, such as including bots, minimum messages, spam threshold, etc. (not specifically used in this operation). |
Output
JSON
guildId- The ID of the Discord server.guildName- The name of the Discord server.exportFormat- The format used for exporting the role configuration.roles- An array of role objects, each containing role ID, name, color, position, and permissions array.exportedAt- Timestamp when the export was performed.
Dependencies
- Discord API
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has permission to access the guild roles.
- If the export fails, verify the bot token credential is valid and has the necessary Discord API permissions.
- Channel or guild fetch errors may occur if the bot is not a member of the guild or lacks required intents.