Carbon
Carbon
DIAdiscord.js - Imagine an app
Created by Carbon on 10/8/2023 in #djs-questions
Unable to create slash commands
This is my code:
client.application.commands.create({
name: 'test',
description: 'devs',
})
.then(console.log)
.catch(console.error);
client.application.commands.create({
name: 'test',
description: 'devs',
})
.then(console.log)
.catch(console.error);
This is the error Im getting
Uncaught TypeError TypeError: Cannot read properties of null (reading 'commands')
Uncaught TypeError TypeError: Cannot read properties of null (reading 'commands')
25 replies