Skip to content

Control servers from Discord

serversTurn on the official Tegra bot to view, start, stop and restart the servers of an agent right from Discord.discord discord bot discord control server panel agent tegra embeden

The official Tegra bot posts a panel in your Discord server that shows the state of a Minecraft server, with Start, Stop and Restart buttons. You allow the bot per agent: once control is on, every server of that agent, including the ones you create later, can get a panel.

The bot can only see the status, start, stop and restart. It cannot reach the console, files, mods or backups.

  • You must be the owner of the agent. Only the owner sees the Discord section in the agent settings.
  • Your Discord account must be linked to your Tegra account. If it is not, the launcher shows a warning with a Link Discord button, or you can use /tegra settings link in Discord.
  • Have your servers password at hand. Turning Discord control on or off always asks for it.
  1. In the launcher, open Studio, then Servers.
  2. On the agent you want to allow, open the ⋮ menu and choose Agent settings.
  3. In the Discord bot control section, turn on Allow control from Discord.
  4. Read what the bot will be able to do and select Release.
Before you allow it, the launcher shows what the bot can and cannot do.
Allow Discord control for this agent dialog with the Cancel and Release buttons

Before you allow it, the launcher shows what the bot can and cannot do.

  1. Type your servers password and select Confirm.

Once the switch is on, the launcher confirms with Discord control turned on for this agent.

With control on, the section shows Invite the bot, Pause bot and the activity history.
Agent settings with Allow control from Discord turned on, the Invite the bot and Pause bot buttons and the activity list

With control on, the section shows Invite the bot, Pause bot and the activity history.

  1. In Agent settings, select Invite the bot and pick your Discord server. You need permission to add bots to it.
  2. In the channel where the panel should appear, use /tegra embed server and pick the Minecraft server.
  3. The bot posts the panel and keeps it up to date on its own.
While the server is running, the panel shows players, software and the Stop and Restart buttons.
Bot panel in Discord with the server Online, 0 of 20 players and the Stop and Restart buttons

While the server is running, the panel shows players, software and the Stop and Restart buttons.

To take a panel out of a channel, use /tegra embed remove.

By default, only you, the agent owner, can use the panel buttons. To let other people use them, give a Discord role permission:

  • /tegra settings role add: pick the role, the server and which actions it can use (start, stop, restart).
  • /tegra settings role remove: takes control away from a role.
  • /tegra settings role list: shows which roles can control servers.

To change the bot language in your Discord server, use /tegra settings language. It requires the Manage Server permission.

With control on, the Activity list in the agent settings shows every action made from Discord: what was done, on which server, by whom and when.

  • Pause bot stops the bot on this agent. It is only a pause and does not remove access completely.
  • Turning off Allow control from Discord removes the bot’s access to every server of the agent. The launcher asks you to confirm and for your servers password.
Turning control off asks for confirmation: the bot loses access to every server of the agent.
Revoke the Discord bot dialog with the Cancel and Revoke buttons

Turning control off asks for confirmation: the bot loses access to every server of the agent.

An old panel shows Agent offline after control was paused or turned off.
Bot panel in Discord showing Agent offline with a Start button

An old panel shows Agent offline after control was paused or turned off.

  • The bot says Discord control is off: turn on Allow control from Discord in the agent settings, as in the steps above.
  • The panel shows Agent offline: check that the agent is on and connected. If you paused or turned off control before, post a new panel with /tegra embed server.
  • The bot cannot post in the channel: give the bot the View Channel, Send Messages and Embed Links permissions in that channel.
  • The Discord not linked warning shows up: link your account in the account settings on the website, or use /tegra settings link in Discord.