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
Favna6mo ago
@vladdy's highlight probably @vladdy
vladdy
vladdy6mo ago
what
Favna
Favna6mo ago
message above they're basically asking for something you've already accomplished help them meguFace
vladdy
vladdy6mo ago
But for the most part, outside the ephemeral flag, you can just...call .reply on both
sach!n
sach!n6mo ago
Also need to combine arguments and options?
Solution
Favna
Favna6mo ago
you parse arguments and options individually for chat input and message run and then send the parsed values to a shared function