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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
