Corebot community update summaryGenerated: 2026-04-19High-level changes
Updated the bot to run more reliably on the currently installed discord.js version.
Added src/modules/discord-compat.js to translate older Corebot/discord.js v13-style APIs into newer discord.js-compatible behavior.
Removed old marketplace/hash/nonce marker comments from source files.
Added clearer Discord-facing error messages for commands and button actions instead of generic "check console" failures.
Added debug logging paths for message command parsing, XP/coins, voice time, and voice-state tracking.
Command handling and slash commands
Reworked src/modules/handlers/CommandListener.js so prefix commands, mentions, and slash commands parse consistently.
Fixed message content handling by enabling MESSAGE_CONTENT in index.js.
Added duplicate execution protection so a command is not run multiple times for the same event.
Improved command error embeds so users see the actual reason in Discord.
Fixed /help and /staffhelp so slash commands use buttons instead of trying to react to interaction replies.
Restored .code to call the Corebot license API, while clearly saying this is an updated open-source community version and showing valid/invalid/unavailable license status.
Config and setup fixes
Verified configs/*.yml parse correctly.
Enabled XP gain in configs/config.yml.
Set Levels and Coins channel restrictions to empty arrays so messages in normal channels and tickets can count.
Enabled voice-time tracking explicitly and set it to count muted/deafened users.
Added MyButtonEmbed to configs/embeds.yml for testing buttons.yml with -embed MyButtonEmbed.
Added/kept Logs.Channels.Chat and other logging channel mappings.
Hardened src/events/interactionCreate.js custom button handling.
Custom button interactions now await deferUpdate before running follow-up actions, fixing InteractionNotReplied errors.
Missing role/action failures now show an ephemeral Discord error to the clicking user.
Missing add/remove role errors now name the exact missing role and tell the admin to create it or update buttons.yml.
Button send actions now support ephemeral replies.
Button action add/remove now supports role, coins, xp, and levels more safely.