Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Using slash options as text args - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
โข
2y ago
โข
8 replies
sassan
Using slash options as text args
Is there a way to use slash options as text args
Solution
The answer is still no
, slash commands are completely separate from message based commands in Sapphire
. You also don
't really
"define
" args for message commands
, please see these guide pages
:
-
https://sapphirejs.dev/docs/Guide/arguments/using-arguments
-
https://sapphirejs.dev/docs/Guide/arguments/using-options
-
https://sapphirejs.dev/docs/Guide/commands/application-commands/application-command-registry/registering-chat-input-commands#registering-chat-input-commands-with-options
Sapphire Framework
Using arguments in your commands | Sapphire
This section is only for the message command and is not relevant for the other command types
. If you are looking for how
Sapphire Framework
Using options | Sapphire
Now that we
've gone over boolean flags
, what if we want a string instead of a boolean value
? That
's where options come
Sapphire Framework
Registering Chat Input Commands | Sapphire
To register a Chat Input Command
(also known as a Slash Command
) with Discord
, you need to acquire an application
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
Type safe Slash Commands Options ?
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Slash command autocompletion dynamic input options
S-IaF
Sapphire - Imagine a Framework / sapphire-support
15mo ago
Using multiple types in args.repeat()
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Using args functionality on another message
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago