Source-checkedChat & community

DiscordBot

by RustyMods · for Valheim

Enables two-way communication between your Valheim server and Discord channels.

14KDownloads
12 mo agoLast updated
BepInExLoaders
ThunderstoreSource

About DiscordBot

From Thunderstore

Enables two-way communication between your Valheim server and Discord channels.

Discord Bot Plugin for Valheim

Enables two-way communication between your Valheim server and Discord channels.

Features

  • 🗨️ Chat Integration: Send messages between Discord and in-game chat
  • 🤖 Discord Commands: Execute server commands from Discord
  • 📢 Server Notifications: Get notified when the server starts up
  • 💻 Death GIF / Screenshot: On player death, send gif or image of event along side a death quip
  • ✨ Screenshot to Discord chat command / hotkey
  • 📱 ChatAI: Prompt AI service and improve death quips

Prerequisites

  • BepInEx installed
  • JsonDotNet installed
  • Discord Webhooks configured for your server
  • Discord Bot Token (If you want your discord server to be able to send messages into your game)
  • Required on client and server

Installation

Discord Setup

How to create Discord Bot

  1. Create a Discord Application
  • Go to the Discord Developer Portal
  • Click "New Application" (top-right)
  • Give your application a name (e.g. ValheimBot) and click "Create".
  1. Add a Bot to the Application
  • In the left sidebar, click "Bot"
  • Click "Add Bot" ----> confirm by clicking "Yes, do it!"
  • You now have a bot user attached to your application.
  • You must enable Message Content Intent
  1. Copy the Bot Token
  • On the Bot page, under the "Token" section, click "Reset Token" (or "Copy" if it is already shown).
  • Confirm, then copy the generated token.
  • Keep this token secret!, if it leaks, click "Reset Token" to generate a new one
  1. Invite the Bot to your Discord Server
  • In the sidebar, click "O2Auth2" ----> "URL Generator".
  • Under SCOPES, check bot
  • Under BOT PERMISSIONS, check the permissions your bot will need
  • Send Messages
  • Read Message History
  • View Channels
  • Copy the generated URL at the bottom
  • Open that URL in your browser and invite the bot to your Discord server

Creating Discord Webhooks

Webhooks allow the plugin to send messages to Discord channels without using the bot's identity.

  1. Create Webhook
  • Go to "Integrations" tab
  • Click "Create Webhook"
  • Give it a name (e.g., "Valheim Chat")
  1. Copy Webhook URL
  • Click "Copy Webhook URL"
  • Save this URL for your plugin configuration

Getting Channel IDs

You'll need Discord Channel IDs for the bot to read messages:

  1. Enable Developer Mode
  • In Discord, go to User Settings (gear icon)
  • Go to "Advanced" settings
  • Enable "Developer Mode"
  1. Copy Channel IDs
  • Right-click on each channel you want to use
  • Select "Copy ID"
  • Save these IDs for your configuration

Configure the Plugin

After first run, configuration files will be generated in BepInEx/config/. Edit the Discord Bot config file to set up your:

  • Channel IDs
  • Webhook URLs
  • Bot Token [SERVER ONLY]

Configurations

Find DiscordBot plugin configurations in BepinEx/config/RustyMods.DiscordBot.cfg

Here's what your configuration might look like:

[1 - General]

## If on, the configuration is locked and can be changed by server admins only. [Synced with Server]
Lock Configuration = On

## Set interval between check for messages in discord, in seconds [Synced with Server]
Poll Interval = 5

## If on, errors will log to console as warnings [Synced with Server]
Log Errors = Off

[2 - Notifications]

## Set webhook to receive notifications, like server start, stop, save etc... [Synced with Server]
Webhook URL = https://discord.com/api/webhooks/1405043541192741007/X-WuWkr_0ApZ4JHq7_TOeMHfRCErXgUZkVnE_oh_yfy2mWKRShHK-wDzdasdWWDzdjk

## If on, bot will send message when server is starting [Synced with Server]
Startup = Off

## If on, bot will send message when server is shutting down [Synced with Server]
Shutdown = Off

## If on, bot will send message when server is saving [Synced with Server]
Saving = Off

## If on, bot will send message when player dies [Synced with Server]
On Death = On

## If on, bot will send message when new player connects [Synced with Server]
New Connection = Off

[3 - Chat]

## Set discord webhook to display chat messages [Synced with Server]
Webhook URL = https://discord.com/api/webhooks/1404119063046652035/OqBFopk29Cku3_4TiLCJVwaagkyLVsdlkjasd239-sdjzdHH7vHh_RfWy1d3

## Set channel ID to monitor for messages [Synced with Server]
Channel ID = 9839768234583209

## If on, bot will send message when player shouts and monitor discord for messages [Synced with Server]
Enabled = On

[4 - Commands]

## Set discord webhook to display feedback messages from commands [Synced with Server]
Webhook URL = https://discord.com/api/webhooks/1404941903144685779/gc8DFwfIO5eUnxzoJ1Dqsi-iX68GLUMWz_3sdlkjasd9DDAS7tKfB1qWuYN

## Set channel ID to monitor for input commands [Synced with Server]
Channel ID = 1106947857194165898

## List of discord admins, who can run commands [Synced with Server]
Discord Admin = .rusty,.warp

[5 - Setup]
## Add bot token here, server only
BOT TOKEN = 

Usage

In-Game to Discord

  • Any message sent as a shout in the in-game chat will appear in your configured Discord chat channel
  • Server events (like startup) will be posted to the notification channel
  • Death events will be posted to the death feed channel

Discord to In-Game

  • Messages sent in the configured Discord chat channel will appear in the in-game chat
  • Commands sent in the configured Discord command channel will be executed on the server

Discord Commands

Send commands in your designated command channel:

  • Commands should start with a command prefix !
  • Example: !listplayers to list online players

Read the full description on Thunderstore →

Highlights

From source data

Loaders

Runs on BepInEx.

Footprint

Rated a light load on a server.

Dependencies

Needs 2 other projects installed alongside it.

DiscordBot on Nxeon

From our catalogue
One-click install
Supported on Nxeon Valheim servers, for BepInEx servers. We download it from Thunderstore, place it, and restart the server.
Server side
Optional on the server
Server type needed
BepInEx
Server load
light
Smallest plan we suggest
Valheim — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.3.0, released 2025-11-14

Game versions by loader

LoaderGame versionsNewest
BepInEx

From 19 recorded builds of DiscordBot.

Recent builds

BuildReleasedGame versionsLoaders
1.3.02025-11-14n/aBepInEx
1.2.92025-11-12n/aBepInEx
1.2.82025-11-11n/aBepInEx
1.2.72025-11-09n/aBepInEx
1.2.62025-11-07n/aBepInEx
1.2.52025-11-03n/aBepInEx

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run DiscordBot on a Valheim server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Thunderstore as “Content”

Chat & community

Chat, voice, Discord, clans and other community features.

Works on a server

From source side support

Thunderstore lists server-side support for DiscordBot as optional: it can run on a server, but isn’t required there.

Compatibility

Game
Valheim
Loaders
BepInEx
Runs on
Serveroptional on the server
Requires
One-click install needs a BepInEx server. 2 other projects installed alongside it.

Verified at the source

  • ✓ThunderstoreOfficial listing, checked 2026-10-02Open ↗
  • ✓AuthorRustyMods, as published on Thunderstore
  • ✓LicenseNot published by the sourceFree

DiscordBot, answered

Generated from the mod’s own source data.

Do my players need to install DiscordBot?

Thunderstore lists server-side support for DiscordBot as optional: it can run on a server, but isn’t required there.

Which loaders does it support?

BepInEx.

Is it free?

Yes. DiscordBot is free to download from Thunderstore.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run DiscordBot on a Valheim server.

Deploy in about a minute from $9.99 a month, then add DiscordBot in one click.