message and chat input command with arguments

I want to register same command as message command and chatInput command with arguments, is there an example of how to use same reply function for both messageRun and chatInputRun in this case ?
Solution:
you parse arguments and options individually for chat input and message run and then send the parsed values to a shared function
Jump to solution
6 Replies
Favna
Favna11mo ago
@vladdy's highlight probably @vladdy
vladdy
vladdy11mo ago
what
Favna
Favna11mo ago
message above they're basically asking for something you've already accomplished help them meguFace
vladdy
vladdy11mo ago
But for the most part, outside the ephemeral flag, you can just...call .reply on both
sach!n
sach!n11mo ago
Also need to combine arguments and options?
Solution
Favna
Favna11mo ago
you parse arguments and options individually for chat input and message run and then send the parsed values to a shared function
Want results from more Discord servers?
Add your server