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
Favna12mo ago
@vladdy's highlight probably @vladdy
vladdy
vladdy12mo ago
what
Favna
Favna12mo ago
message above they're basically asking for something you've already accomplished help them meguFace
vladdy
vladdy12mo ago
But for the most part, outside the ephemeral flag, you can just...call .reply on both
sach!n
sach!nOP12mo ago
Also need to combine arguments and options?
Solution
Favna
Favna12mo 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