Cannot set properties of undefined (setting 'commands')
My code:
Error:
3 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
module.exports = register();you're calling
register
, so you're exporting what register
returns (with the error originating from calling register
with no params)
I imagine you'd also want it in an object or otherwise using exports.register
Thank you, this solved the issue.