Lang
Customize bot messages, embeds, and language strings
Introduction
The Language configuration file (lang.json) contains all messages, embeds, and text strings used by Athena Bot. This file allows you to customize every message the bot sends, translate the bot to other languages, or adjust wording to match your server's style.
File Structure
The language file is organized into several main sections:
{
lang: {
// Simple text strings
unexpected_command_error: "...",
no_reason_provided: "...",
},
embeds: {
// Embed configurations
help_default: { ... },
ping: { ... },
},
warnings: {
// Warning/error messages
no_permission: "...",
},
interaction_names: {
// Command and option names
}
}Available Placeholders
Finding Placeholders
Each embed and message configuration lists its available placeholders in a comment above it:
The comment shows which placeholders you can use for that specific message.
Global Placeholders
These placeholders work in all embed configurations throughout the file:
Configuring Embeds
Basic Embed Structure
Embeds under the embeds section support the full Discord embed JSON format. Here's how to configure an embed:
Available Embed Properties
You can use any Discord embed property in JSON format:
Basic Properties:
title- Embed titledescription- Main embed textcolor- Hex color code (e.g.,"#FF0000") or decimal numberurl- URL when clicking the title
Image & Thumbnail:
thumbnail: { url: "..." }- Small image in top-rightimage: { url: "..." }- Large image at bottom
Author:
Footer:
Fields:
Special Properties:
defaultTimestamp: true- Adds current timestamp to embedguildIcon: true- Uses server icon in footer
Example: Customizing the Help Embed
Here's an example of customizing the help command embed:
Simple Text Strings
Not all messages use embeds. Simple text strings are configured under the lang section:
These are plain text strings (with optional Discord markdown formatting) that can include placeholders where specified.
Warning Messages
The warnings section contains error and warning messages:
These follow the same format as simple text strings but are used for errors and warnings.
Best Practices
Customization Tips:
Test changes - Edit one message at a time and test before making more changes
Keep placeholders - Don't remove placeholders unless you're sure they're not needed
Maintain formatting - Keep Discord markdown (
**bold**,__underline__,`code`) for consistencyUse global placeholders - Add server branding with
%guild%,%guild_icon%, etc.Check syntax - Invalid JSON will cause the bot to fail loading the config
Backup first - Save a copy of the original file before making changes
Common Mistakes:
Removing required placeholders (e.g., removing
%user%from a user-specific message)Invalid JSON syntax (missing commas, quotes, brackets)
Using placeholders that don't exist for that message
Breaking Discord's embed character limits (title: 256, description: 4096, field value: 1024)
Example: Complete Custom Embed
Here's a fully customized embed using multiple properties:
This creates a rich, informative embed with organized fields, custom colors, and relevant server information.
Last updated