Unable to create slash commands
This is my code:
This is the error Im getting
This is the error Im getting
Uncaught TypeError TypeError: Cannot read properties of null (reading 'commands')client.application.commands.create({
name: 'test',
description: 'devs',
})
.then(console.log)
.catch(console.error);