Skip to content

Sandbox/315bc7f2 fc36 400c 8917 lmhx#91

Open
tatoamericano8-blip wants to merge 12 commits into
codebymitch:mainfrom
tatoamericano8-blip:sandbox/315bc7f2-fc36-400c-8917--lmhx
Open

Sandbox/315bc7f2 fc36 400c 8917 lmhx#91
tatoamericano8-blip wants to merge 12 commits into
codebymitch:mainfrom
tatoamericano8-blip:sandbox/315bc7f2-fc36-400c-8917--lmhx

Conversation

@tatoamericano8-blip
Copy link
Copy Markdown

No description provided.

tatoamericano8-blip and others added 12 commits May 25, 2026 13:11
donde el bot escucha lo que pasa en Discord en tiempo real.
## Problem\nThe command loader was crashing with  because it assumed all  objects were SlashCommandBuilder instances with a  method.\n\nSome commands may have  as plain objects or other structures that don't have this method, causing the bot to crash during startup.\n\n## Solution\nAdded a new helper function  that safely handles both:\n- SlashCommandBuilder instances (calls )\n- Plain objects (returns them directly)\n- Invalid structures (returns null and logs a warning)\n\nThis function is now used in all places where  was previously called directly:\n- Line 103: Loading commands\n- Line 117: Filtering commands with subcommands\n- Line 122: Counting subcommands\n- Line 155+: Command registration\n\n## Changes\n- Added  helper function\n- Updated  to use the helper\n- Updated  to use the helper\n- Added proper null checks and error logging\n\nThe bot will now gracefully skip malformed commands instead of crashing.
@tatoamericano8-blip
Copy link
Copy Markdown
Author

hola

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant