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 perform various operations related to Discord invites, specifically for the 'Get' operation under the 'Invite' resource. It fetches information about invites in a Discord guild (server), such as retrieving details of a specific invite or listing all invites for a channel or guild. This is useful for managing and monitoring invite links within a Discord server, for example, to track invite usage or validate invite codes.
Use Case Examples
- Retrieve details of a specific invite code to check its validity and usage statistics.
- List all active invites in a guild to monitor who created them and how many times they have been used.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) where the invite exists. This is required to specify the context for the invite operations. |
| Additional Fields | Optional parameters that can be used to customize the invite, such as max age, max uses, temporary membership, and reason for audit logs. These fields are used when creating or modifying invites but are available as input properties for completeness. |
Output
JSON
code- The invite code string.url- The full URL of the invite.maxAge- Maximum age of the invite in seconds.maxUses- Maximum number of times the invite can be used.temporary- Indicates if the invite grants temporary membership.uses- Number of times the invite has been used (when listing invites).inviterusername- Username of the user who created the invite (when listing invites).
Dependencies
- Discord API
- Bot token credential for authentication
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has permissions to access the guild and its invites.
- If the invite code or channel is invalid, the node will throw an error indicating the invite or channel was not found.
- Invalid or missing bot token credentials will prevent the node from authenticating with Discord API.
Links
- Discord Developer Documentation - Invite Resource - Official Discord API documentation for managing invites, including creating, fetching, and listing invites.