Aller au contenu principal

discord_link_manifest

Configure Discord linking and role synchronization — misc entry.

Entry Information

PropertyValue
Entry IDdiscord_link_manifest
TypeMisc
ColorBlue
Iconmdi:discord

Description

Manifest entry configuring how Discord linking behaves inside TypeWriter. The /{commandName} command (with its unlink subcommand) is registered through the engine's [CustomCommandEntry] pipeline, so it follows engine reloads without any reflection.

Fields

FieldTypeDescription
commandNameStringCommand players run to generate a link code; '<command> unlink' removes the link
storageRef<DiscordLinkArtifactEntry>Artifact entry used to persist link information
webhookWebhookSettingsWebhook used to post link instructions/confirmations
botDiscordBotSettingsDiscord Bot configuration for listening to codes and syncing roles
verificationChannelIdStringDiscord text channel ID where the bot listens for verification codes
codeLengthIntNumber of characters for generated verification codes
codeValidityMinutesLongValidity duration (in minutes) for generated codes
autoOverwriteExistingLinkBooleanAutomatically overwrite existing links when a new code is confirmed
notifyPermissionStringPermission required to receive link notifications (empty disables them)
groupPermissionFormatStringPermission checked per mapping to pick the player's group. {group} is replaced by the mapping's Minecraft group
roleMappingsList<RoleMapping>Mappings between Minecraft groups and Discord Role IDs
onLinkTriggersList<Ref<TriggerableEntry>>Entries triggered for the player when their Discord link is confirmed
messagesDiscordLinkMessagesPlayer facing messages, including menu text (placeholders: {code}, {duration}, {discord}, {player})

Usage Example

- entry: discord_link_manifest
name: "Configure Discord linking and role synchronization"
commandName: ""
storage: ""
webhook: ""
bot: ""
verificationChannelId: ""
codeLength: 0
codeValidityMinutes: 0
autoOverwriteExistingLink: false
notifyPermission: ""
groupPermissionFormat: ""
roleMappings: []
onLinkTriggers: []
messages: ""