DiscordLua
Runtime 1.0.0 Module 1.2.4 Discord API v10

A complete developer ecosystem: runtime, module, CLI, and versioned API reference.

Write Discord bots in Lua. Ship one installer.

Download DiscordLua-Setup.exe. The installer places the native Lua 5.4 runtime, Discord module, and CLI on PATH. Then dislua run bot.lua is enough.

Download DiscordLua-Setup.exe Open the docs API reference
lua
local discord = require("discord")

local client = discord.Client({
    intents = { "Guilds", "GuildMessages", "MessageContent" }
})

client:on("ready", function()
    print("Bot is ready.")
end)

client:on("messageCreate", function(message)
    if message.content == "!ping" then
        message:reply("Pong!")
    end
end)

client:login(os.getenv("DISCORD_TOKEN"))
1.0.0Runtime / CLI
1.2.4Discord module
v10REST + Gateway

Own runtime

Official Lua 5.4 is embedded as a language VM. HTTP, TLS, WebSocket, JSON, and the event loop are native C++ — not Luvit, not Node, not a borrowed framework.

Voice and shards

Join voice, play Opus, receive decrypted packets, and spawn shard processes. broadcastEval takes a Lua source string.

Versioned docs

Every release keeps its documentation. GET /api/discordlua/version is the update manifest the CLI already checks.