Discord.gd
Discord bots, written in Godot.
Discord.gd is a Discord Bot API wrapper written in pure GDScript. Gateway events arrive as Godot signals, and slash commands, buttons and select menus are built in. A working bot fits in ten lines.
- Engine
- Godot 4.x, with a Godot 3.x branch
- Language
- 100% GDScript
- Latest release
- 2.0.6, January 2026
- License
- MIT
- GitHub
- 146 stars
# general
bot.gd
extends Node2D
func _ready():
var bot = $DiscordBot
bot.TOKEN = "your_bot_token_here"
bot.message_create.connect(_on_message_create)
bot.login()
func _on_message_create(bot: DiscordBot, msg: Message, channel: Dictionary):
if msg.author.bot:
return
await bot.reply(msg, "Hi!")What’s included
Built in
- Signals
- bot_ready, message_create, guild_create, message_delete and more.
- Application commands
- Register and answer slash commands.
- Components
- Buttons and select menus on messages.
- Images
- User avatars and guild icons as Godot ImageTextures.
- Async
- Coroutine-based API that reads like promises.