Discord icon

Discord

Interact with Discord API - Full Bot Features

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

  1. Listing all invite links for a Discord guild to monitor who has created invites and how many times each invite has been used.
  2. 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.
  • inviter
    • username - 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

Discussion