# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mongenscave.com/premium-products/discordlink/feature-help/link-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
