#Avoiding checking for something that has already been checked

2 messages · Page 1 of 1 (latest)

vagrant valley
#

I've already got a check for the subcommand in the main function chatInputRun, so is there a way for me to avoid doing a similar check in the helper function getCourseInfo itself?

raven dune
#

seems like you need to make the interaction parameter type more specific in getCourseInfo. it's hard to help without being able to see your code, but if you hover over interaction on line 3, maybe use whatever type it shows there