Discord bot
Run these commands in Discord, in your community’s configured Minecraft bot channel. They work for both Java and Bedrock accounts. For game downloads and connection details, see How to join.
Player commands
Section titled “Player commands”| Command | What it does |
|---|---|
/minecraft link code:ABC123 |
Links the account that received this code when trying to join Minecraft. Replace ABC123 with your own code. |
/minecraft status |
Lists your linked accounts and whether they currently have access. |
/minecraft unlink |
Removes your account’s Discord link. If you have several linked accounts, use the player option and select one from the suggestions. |
Linking codes contain six letters/numbers, are not case-sensitive, and last three hours. Java and Bedrock accounts need separate links; each can use the same Discord account. An existing link works across approved communities using this bot, so joining another approved Discord server does not require linking again.
Linking proves which Minecraft account belongs to you. Access still requires your community’s configured role, another qualifying community, or a manual grant. Ask its staff which role to use; the role’s name can differ between servers.
Unlinking preserves your Minecraft items and progress. It removes Discord-based access for that account, while manual grants and moderation restrictions remain. If no access remains, your current game session will disconnect. See account access for the full joining process.
Add the bot to your Discord server
Section titled “Add the bot to your Discord server”Your community must first be approved by the Minecraft operator. Installing the bot alone does not grant Minecraft access. There is currently no /minecraft setup command.
- Choose an access role and a channel for Minecraft bot commands. The role does not need Discord administrative permissions. Staff can create a role or reuse an existing one.
- Enable Developer Mode under Discord’s User Settings → Advanced. Use Copy Server ID, Copy Role ID, and Copy Channel ID, then send those three IDs to the Minecraft operator. If your community wants access for all members instead, arrange that explicitly with the operator.
- Agree how access removal works. Removing the access role removes that community’s role-based grant. The operator separately decides whether kicks/bans affect only that community’s access or create a global Minecraft suspension. Other valid grants can remain effective when removal is community-only.
- Wait for the operator to confirm the installation window. The bot leaves servers absent from its active allowlist, so an early invitation can show Success and then disappear from the member list.
- A server owner or member with Manage Server opens Invite Avhaari Minecraft, selects the approved server, and authorizes it. The application owner must enable Public Bot first when another administrator is installing it. An offline bot during the arranged restart is expected.
- Give the bot View Channel, Send Messages, and Embed Links in the chosen channel. View Audit Log is additionally required if the agreed policy uses kicks/bans for global suspensions. The bot does not need Administrator or Manage Roles for role-based access.
- The operator starts the bot and verifies
/minecraftcommands, the channel and the access role. Give a player that role, have them link their account, and test access. Removing the role should remove access supplied by this community.
Your members also need permission to view the channel and use application commands. Discord server administrators do not automatically become Minecraft operators or bot approval staff.
Public Bot controls who can install the application, independently of the Minecraft allowlist. It does not automatically list the application in Discord’s discovery directory. The application owner can make this unverified bot private again after installation; Discord may require Installation → Install Link → None before disabling Public Bot. Existing installations stay in place. See Discord’s installation permissions and Public/Private Bot setting.
Community approval commands
Section titled “Community approval commands”These require an approval role explicitly configured by the Minecraft operator. Ordinary Discord administrator permissions alone do not grant them. In communities with automatic role access, staff normally manage the access role instead.
| Command | What it does |
|---|---|
/minecraft approve member:@Player |
Saves an explicit approval tied to this community’s access requirements. The player must still link their Minecraft account. Optional hours limits its duration. |
/minecraft revoke member:@Player |
Removes this community’s explicit approval. Automatic role access and other grants may still apply. |
Minecraft operator commands
Section titled “Minecraft operator commands”Manual access, suspensions and troubleshooting
Only the configured Minecraft operator can use these commands. They do not give other Discord server owners these powers.
| Command | What it does |
|---|---|
/minecraft allow code:ABC123 |
Grants manual access to the authenticated account behind the login code, without requiring a Discord link or role. Optional hours sets an expiry; omission means no expiry. |
/minecraft manual |
Lists manually admitted players and expiry dates. Use page for further pages. |
/minecraft remove_manual player:Name |
Removes a manual grant. Select the in-game name from autocomplete to distinguish Java and Bedrock. Names are not case-sensitive; other access sources can remain valid. |
/minecraft block member:@Player reason:Reason |
Globally suspends Minecraft accounts associated with that Discord user, overriding access grants. |
/minecraft restore member:@Player |
Clears that user’s global suspension after moderation is checked. A valid access grant is still required. |
/minecraft account_block account:ID reason:Reason |
Suspends one authenticated Minecraft account, including an account without Discord. |
/minecraft account_restore account:ID |
Clears that account’s suspension. User-wide suspensions and other requirements still apply. |
/minecraft inspect account:ID |
Explains the account’s effective access sources or denial. |
The account field uses an authenticated identifier such as java:<UUID> or bedrock:<XUID>, available in the login-code approval result. It is different from the player field in remove_manual, which accepts an in-game name.
The operator can also use /minecraft approve member:@Player independent:true to create an approval independent of the community’s continuing role/membership requirements. This option is unavailable to community approval staff. Approvals can include hours; /minecraft revoke removes the explicit approval for the current community.
If a command is missing or access is denied
Section titled “If a command is missing or access is denied”- No
/minecraftcommands: check that this is the approved server and configured channel, that the bot has finished starting, and that you can use application commands. Ask the operator to verify registration if commands still do not appear. - Invitation says Success, but the bot disappears: the bot may have left an unapproved server. Arrange installation with the operator, then invite it again during the confirmed window.
- Linked but denied: check the access role and
/minecraft status. Removing one grant does not remove every other grant, and an explicit suspension takes priority over grants. - Application did not respond: try again once after a short wait. Report the command and time to the operator if it repeats.
- No Discord account: follow manual access; the operator can use the code from your Minecraft connection attempt.