-
Part of the guide or code sample the question is about Question |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can remove Passing I recommend you join the Discord server to get assistance with any future questions. |
Beta Was this translation helpful? Give feedback.
-
Cheers! My apologies for the (probably) silly question. I've had experience with JavaScript, but my main background is in languages like C# and Java, so I was not actually aware that JS behaved like that. I'm programmed to think that if it's being called with 2 parameters, it must have 2 parameters in the method signature. I'll be joining into that server, definitely. |
Beta Was this translation helpful? Give feedback.
You can remove
args
from the command run/execute function, it won't throw an error unless you then try to access it within that function while it's no longer defined. Since you're dealing with an unused var eslint rule, I'd assume that's not a problem.Passing
(message, args)
to a function that only accepts(message)
will just result in the second param being dropped.I recommend you join the Discord server to get assistance with any future questions.