Tuesday, 11 February 2020

Cannot read property 'get' of undefined

Hi, i am making a discord bot in java script. I am trying to use a command handler but keep running into this problem when i have multiple calls for a embed in one client.on, this is what my index is like​if (command === 'warden') {client.commands.get('warden').execute(message, args)        }if (command === 'knight') {client.commands.get('knight').execute(message, args)    }

Submitted February 11, 2020 at 08:39PM by SaltyMini

No comments:

Post a Comment