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