Actions53
- Message Actions
- Channel Actions
- Thread Actions
- Reaction Actions
- Guild (Server) Actions
- Member Actions
- Role Actions
- Voice Actions
- DM Actions
- Webhook Actions
- Invite Actions
Overview
This node interacts with the Discord API to manage invites within a Discord guild (server). Specifically, the 'Invite' resource with the 'List' operation fetches and lists all invites for a specified guild. This is useful for administrators or bots that need to monitor or manage invite links to their Discord servers, such as tracking invite usage or managing access.
Use Case Examples
- Listing all invite links for a Discord guild to monitor who has created invites and how many times each invite has been used.
- Fetching invite details to audit or manage server access permissions.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) for which to list invites. |
| Additional Fields | Optional parameters for invite creation such as max age, max uses, temporary membership, and reason for audit logs. Not used in the 'List' operation but available for invite creation. |
Output
JSON
code- The invite code string.url- The full URL of the invite.uses- Number of times the invite has been used.maxUses- Maximum number of uses allowed for the invite.inviterusername- Username of the user who created the invite.
Dependencies
- Discord API
- An API key credential for Discord bot authentication
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has permission to fetch invites for that guild.
- If the bot lacks the 'Manage Guild' or 'View Audit Log' permissions, fetching invites may fail.
- Invalid or expired bot token will prevent the node from authenticating with Discord API.
Links
- Discord.js Guild Invites - Documentation on how to fetch invites from a Discord guild using discord.js library.
- Discord Developer Portal - Invites - Official Discord API documentation for invite objects and endpoints.