> For the complete documentation index, see [llms.txt](https://docs.mongenscave.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mongenscave.com/premium-products/discordlink/feature-help/link-system.md).

# Link System

## Default Configuration

This is the default configuration, you can choose type between SLASH and LINK-EMBED

```yaml
link-system:
  # Types: SLASH, LINK-EMBED
  type: SLASH

  slash-command:
    link:
      command: "link"
      description: "Generate an activation code to sync!"
    link-embed:
      command: "link-embed"
      description: "The channel to send the linking embed message!"

  link-rewards:
    give-discord-role: "your-role-id"
    once-reward: true
    sync-roles: true

    execute-commands:
      enabled: true
      only-if-player-online: true
      commands:
        - "eco give %player% 150"
        - "say %player% has successfully synced!"
```

## Type: SLASH

This system registers a simple slash command that users can use to generate a code.

Illustration on Discord:

<figure><img src="/files/VUDECM4O83UshTMgwu0v" alt=""><figcaption></figcaption></figure>

## Type: LINK-EMBED

With the `/link-embed #channel` slash command, users with Administrator permissions can send an embed message to a specified channel. By clicking the button in the embed, they can generate their own linking code.

Illustration on Discord:

<figure><img src="/files/PZzw7uPKAVMpByV9KMnb" alt=""><figcaption></figcaption></figure>
