S-IAF
Join ServerSapphire - Imagine a framework
sapphire-support
Hybrid commands
MMimu1/28/2023
Is there something like hybrid command which can be used to create prefix and slash commands and also the execution together like discord.py
FFavna1/28/2023
just add both a
chatInputRun
and messageRun
to the command fileMMimu1/28/2023
Wanted something like this

FFavna1/28/2023
and I told you how we support it 

FFavna1/28/2023
class MyCommand extends Command {
messageRun(message) {
// parse options
return theActualCommnadLogic(args);
}
chatInputRun(interaction) {
// parse options
return theActualCommnadLogic(args);
}
theActualCommandLogic(args) {
// do actual stuff
}
}
module.exports = { MyCommand }
not sure how that's any harder to make
KKrish1/28/2023
messageRun: works for message based prefix
chatInputRun: works for slash commands
(if you can't figure it out)
chatInputRun: works for slash commands
(if you can't figure it out)
KKrish1/28/2023
the migrating guide explains it pretty well
FFavna1/28/2023
works for chat input commands*
to be more specific. "slash commands" is a user term but not the term Discord officially uses
on that note, chat input commands are a subcategory of application commands (which also includes context menu commands)
to be more specific. "slash commands" is a user term but not the term Discord officially uses
on that note, chat input commands are a subcategory of application commands (which also includes context menu commands)
KKrish1/28/2023
but that's how you make people understand what it actually does
Solution
KKrish1/28/2023
¯\_(ツ)_/¯
KKrish1/28/2023
https://www.sapphirejs.dev/docs/Guide/getting-started/updating-from-v3-to-v4
Here's the migrating guide which explains how to use both ^
Here's the migrating guide which explains how to use both ^
MMimu1/28/2023
Bruh I ended up migrating to discordpy instead 😵
FFavna1/28/2023
shrug
FFavna1/28/2023
python kids never change
MMimu1/28/2023
What's wrong with python
FFavna1/28/2023
other than that the fact that it uses indents instead of semi-colons, nothing. It's just that people who use python for discord bots always swear by python. You're far from the first who comes in this server, realises Sapphire doesn't work exactly the same as Dpy, and scuddles right back to it.
KKrish1/29/2023
lol
AArarou1/29/2023
so we're dissin languages in support
AArarou1/29/2023
k