# How to Connect txAdmin to Discord on Your FiveM Server (/docs/fivem/txadmin-discord)



import { Step, Steps } from 'fumadocs-ui/components/steps';

txAdmin has a built-in Discord bot that posts server status, player counts, and restart notifications to a Discord channel.

Set Up the Discord Bot [#set-up-the-discord-bot]

<Steps>
  <Step>
    Create a Discord Application [#create-a-discord-application]

    Go to [discord.com/developers/applications](https://discord.com/developers/applications). Click **New Application** and name it (e.g., "My Server Status").
  </Step>

  <Step>
    Get the Bot Token [#get-the-bot-token]

    In the left sidebar, click **Bot**. Click **Reset Token** and copy it. Under **Privileged Gateway Intents**, enable **Server Members Intent**.
  </Step>

  <Step>
    Invite the bot to your Discord [#invite-the-bot-to-your-discord]

    Use this URL, replacing `YOUR_APP_ID` with your Application ID (found on the General Information page):

    ```
    https://discordapp.com/oauth2/authorize?&client_id=YOUR_APP_ID&scope=bot&permissions=18432
    ```

    Select your Discord server and authorize.
  </Step>

  <Step>
    Get your Discord server and channel IDs [#get-your-discord-server-and-channel-ids]

    In Discord, enable **Developer Mode** (User Settings → Advanced). Then:

    * Right-click your **server icon** → **Copy Server ID**
    * Right-click the **channel** where you want status updates → **Copy Channel ID**
  </Step>

  <Step>
    Configure in txAdmin [#configure-in-txadmin]

    Open txAdmin. Go to **Settings → Discord**. Enter:

    * **Bot Token** — from step 2
    * **Server ID** — from step 4
    * **Status Channel ID** — from step 4

    Save the settings.
  </Step>

  <Step>
    Add the status embed [#add-the-status-embed]

    In the Discord channel you configured, type:

    ```
    /status add
    ```

    An auto-updating embed appears showing player count and server status.
  </Step>
</Steps>

What the Bot Does [#what-the-bot-does]

* Auto-updating **server status embed** (online/offline, player count)
* **Restart notifications** with countdown
* **Admin action logs** (kicks, bans)
* **Announcement forwarding** from txAdmin to Discord

Related Guides [#related-guides]

* [txAdmin](/docs/fivem/txadmin)
* [Server Configuration](/docs/fivem/configure-your-server)
