> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elixbot.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Créer un token

> Apprends à générer un token Discord pour ton bot Elix.

# Créer un token Discord

Avant de pouvoir utiliser ton bot Elix, tu dois générer un **token Discord** via le [Discord Developer Portal](https://discord.com/developers/applications).

Ce token permettra à Elix de se connecter à ton bot Discord. Voici les étapes à suivre :

<Steps>
  <Step title="Accéder au portail développeur">
    Va sur le site officiel : [https://discord.com/developers/applications](https://discord.com/developers/applications) Clique sur le bouton **"New Application"** en haut à droite.

    <img src="https://mintcdn.com/elix/a-RRwIjvpKfH3Kjx/images/CliqueIciNewApps.png?fit=max&auto=format&n=a-RRwIjvpKfH3Kjx&q=85&s=6f8bb081a5ee285cad6c16298934a53b" alt="Clique Ici New Apps Pn" width="1919" height="944" data-path="images/CliqueIciNewApps.png" />
  </Step>

  <Step title="Créer une nouvelle application">
    Donne un nom à ton application (par exemple : MonBotElix), puis clique sur **"Create"**.

    <img src="https://mintcdn.com/elix/5UOZfZ70PzTjAZ1d/images/CliqueiciNewApp.png?fit=max&auto=format&n=5UOZfZ70PzTjAZ1d&q=85&s=758fba758cca105404f82c59c295345a" alt="Cliqueici New App Pn" width="1918" height="944" data-path="images/CliqueiciNewApp.png" />
  </Step>

  <Step title="Configurer le bot dans l'application">
    Une fois l'application créée, va dans l'onglet **"Bot"** dans le menu à gauche.\
    Ici, active les trois intents suivants en les cochant :

    * **PRESENCE INTENT**
    * **SERVER MEMBERS INTENT**
    * **MESSAGE CONTENT INTENT**

          <img src="https://mintcdn.com/elix/a-RRwIjvpKfH3Kjx/images/IntentsOn.png?fit=max&auto=format&n=a-RRwIjvpKfH3Kjx&q=85&s=92b882df85981309c7f0d845ab99f736" alt="Intents On Pn" width="1919" height="945" data-path="images/IntentsOn.png" />

    Ensuite, clique sur **"Reset Token"** pour générer un nouveau token, puis sur **"Copy"** pour le copier.

    <img src="https://mintcdn.com/elix/a-RRwIjvpKfH3Kjx/images/CliqueIciResetToken.png?fit=max&auto=format&n=a-RRwIjvpKfH3Kjx&q=85&s=d53c67a75b425710c0040c1fd6a81914" alt="Clique Ici Reset Token Pn" width="1919" height="944" data-path="images/CliqueIciResetToken.png" />

    \
    Ce token te servira à lier ton bot Elix.

    <Warning>
      **Ne partage jamais ton token, il donne un contrôle total sur ton bot.**
    </Warning>
  </Step>
</Steps>

***

## Prochaine étape

Une fois ton token copié, tu dois le **lier à ton bot Elix**.

[Clique ici pour lier ton token](/lier-un-token)
