#Undefined interaction.client.commands.get()
13 messages · Page 1 of 1 (latest)
sounds like you never defined client.commands
that's where you defined command
<Client>.commands is not a native property of the Client class
it's commonly defined, but still one that you'd need to define yourself
your error is "Cannot read properties of undefined (reading 'get')" which means that it's reading get from undefined
not that get is undefined
• ReferenceError: "x" is not defined: learn more
• TypeError: Cannot read properties of undefined/null (reading "x"): learn more
• The provided id is incorrect (copy role ids from context menus, not message mentions)
• The client does not have this structure cached (try fetching instead)
• The client is not yet ready (move the code into any event listener callback)
Creating Your Bot: Loading command files