Skip to content

fix: convert discord.js import to dynamic in client-direct#29

Merged
Bojan131 merged 1 commit intofeature/vector-dbfrom
fix-analyze-discord
Mar 2, 2026
Merged

fix: convert discord.js import to dynamic in client-direct#29
Bojan131 merged 1 commit intofeature/vector-dbfrom
fix-analyze-discord

Conversation

@Bojan131
Copy link

@Bojan131 Bojan131 commented Mar 2, 2026

Static import of discord.js in api.ts crashes the agent on startup when @discordjs/builders has compatibility issues. Moved to dynamic import inside the /channels endpoint handler since it's only needed for Discord guild queries.

Made-with: Cursor

Relates to

Risks

Background

What does this PR do?

What kind of change is this?

Documentation changes needed?

Testing

Where should a reviewer start?

Detailed testing steps

Static import of discord.js in api.ts crashes the agent on startup
when @discordjs/builders has compatibility issues. Moved to dynamic
import inside the /channels endpoint handler since it's only needed
for Discord guild queries.

Made-with: Cursor
@Bojan131 Bojan131 merged commit 615399e into feature/vector-db Mar 2, 2026
3 of 6 checks passed
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.

2 participants