Check if optional argument in commnd was provided
Hey, I have a command called /stats
It will provide the stats for the user who entered the command, the command also has a optional argument (user mention) with which the user can get the stats of another user.
How can I check if the argument is provided because now I just get an error when only the /stats command is entered
4 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
is null if not entered
hmm, I don't get it to work:
get me
I have to remove the .id
yeah... makes sense, sry
Thanks anyways 🙂
👍