invites_get
Resolve any Discord invite code to its target guild and channel. Inspect invite details before sharing or deleting, with optional member counts and expiration.
Instructions
Purpose: Look up a Discord invite by its code (or full URL after stripping the prefix).
When to use:
Inspect an invite before deleting or sharing.
Resolve which guild/channel an invite points at.
When NOT to use:
Listing all invites for a channel → use
invites_list_channel.
Example: {code:"abc123def", with_counts:true}
Returns: Projected invite shape with optional counts. Guild and channel names remain raw Discord data; untrusted_names provides a separately fenced copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Invite code (the bit after https://discord.gg/) | |
| with_counts | No | Include approximate member/presence counts | |
| with_expiration | No | Include expires_at field | |
| guild_scheduled_event_id | No | Surface a specific scheduled event tied to the invite |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||