Closed Assassin-1234 closed 3 years ago
Mind sharing how you initialized the client?
Hello! I'm having the same issue. For the record, my client is initialized like so:
const Discord = require("discord.js");
const interactions = require("discord-slash-commands-client");
const client = new Discord.Client();
client.interactions = new interactions.Client(
config.token,
"789655175048331283"
);
Have you double checked that config.token is a valid token? If it is there might be a bug with the headers for deleting commands (header that authorizes using the token) As i can see from the response Assassin-1234 sent there is no authorization header.
Yes it's a valid token, it works just fine when calling client.login()
Alright. This should have been fixed in the latest update i just pushed. If you can give it a shot.
Will do, give me a moment!
Yep, that patch seems to be working on my end! Nothing is logged to console, however - even with .then(console.log)
Thats weird. Did it just log undefined or ?
I think it's printing an empty string? There's a newline in my console with nothing in it.
can u attach a screenshot of ur console?
Image 1: Code
Image 2: Output
Note the blank line between "Bot Loaded" and "Created Command"
i see. Ill have to check the response from deleting. Might be that there's no response or something like that.
I really appreciate your help ! tysm I can delete my command successfully, I can confirm that its not logging anything
Alright! Thats good.
hey ! I tried using the .deleteCommand('my command ID') but encountered a weird error,
I have no idea what this error is about
my code -
my error -
any help would be appreciated !