Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Two Commands In One File - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
โข
2y ago
โข
5 replies
ItaChi
Two Commands In One File
when i export chat input command and user context menu command in one file it reads the first export only
. what
's the problem
?
Solution
Anyway you should just register them in the same class and implement both chatInputRun and contextMenuRun instead of having 2 classes
Jump to solution
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,261
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Multiple commands in a single file
S-IaF
Sapphire - Imagine a Framework / sapphire-support
2y ago
Multiple context commands in a single file
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Sync Slash Commands with one Guild
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Multiple Clients on one file/instance
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago