earth-americasLang

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:

circle-info

Note: Global placeholders can be used in any message or embed. Specific placeholders (listed above each configuration) only work in their designated messages.


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 title

  • description - Main embed text

  • color - Hex color code (e.g., "#FF0000") or decimal number

  • url - URL when clicking the title

Image & Thumbnail:

  • thumbnail: { url: "..." } - Small image in top-right

  • image: { url: "..." } - Large image at bottom

Author:

Footer:

Fields:

Special Properties:

  • defaultTimestamp: true - Adds current timestamp to embed

  • guildIcon: 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

circle-check
circle-exclamation

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