Skip to content
Moderation inviteInfo

$inviteInfo

Reads an invitation from Discord by code or link. Bot Creator function, not in the official BDFD wiki.

Syntax

$inviteInfo[codeOrLink;(property)]

Parameters

Parameter Description
codeOrLink Required. abc123, discord.gg/abc123 or a full invite link.
property Optional. code, channel, channelID, guildID, guildName, inviter, inviterID, memberCount, onlineCount, expiresAt, isTemporary, maxUses, uses, creationDate, json.

Return Value

  • The invitation as JSON, or the requested property.

Example

$inviteInfo[discord.gg/abc123;guildName]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.