跳到主要内容

Discord Link Manifest

The discord_link_manifest configures how players link their Minecraft accounts to Discord, including verification channels, bot settings, and role syncing.

Commands

The command is registered through the engine's command system.

CommandDescription
/{commandName}Generates (or repeats) a verification code
/{commandName} unlinkRemoves the player's Discord link and mapped roles

[!IMPORTANT] Since v0.8, the old /DiscordLink and /DiscordUnlink commands are replaced by /{commandName} and /{commandName} unlink (default discordlink).

Configuration

discord_link_manifestMap

Configuration for the entry.

Properties

commandName

Command players run to generate a link code. storageArtifact

The artifact used to store link data (UUID <-> Discord ID) and pending codes. webhookWebhookSettings

Webhook used to post link instructions and confirmations. botDiscordBotSettings

Bot configuration: enabled, botToken, guildId, and the verification replies. verificationChannelIdString

The Discord Channel ID where players type their code. codeLengthInt

Length of the generated verification code (cryptographically random). codeValidityMinutesInt

How long a code remains valid before expiring. autoOverwriteExistingLinkBoolean

Automatically overwrite existing links when a new code is confirmed. notifyPermissionString

Permission receiving in-game notifications when a link is confirmed (empty disables them). groupPermissionFormatString

Permission checked per mapping to pick the player's group; {group} is replaced by the mapping's Minecraft group. roleMappings

"> Mappings between Minecraft groups and Discord Role IDs for sync. onLinkTriggers

" default="[]"> Entries triggered for the player when their Discord link is confirmed — perfect for "link your account" quests or rewards. messagesDiscordLinkMessages

Player facing messages, including the configurable embed titles (embedLinkedTitle, embedUnlinkedTitle). Placeholders: {code}, {duration}, {discord}, {player}.