DiscordAPIError[0]: 404: Not Found

The Code
require ('dotenv').config();
const { REST, Routes } = require ('discord.js')

const commands =[
{
name: 'storm',
description: 'Send A Storm',
},
];

const rest = new REST({ version:'0.10'}).setToken(process.env.TOKEN);


(async () => {
try {
console.log(`⏹️ Registering Slash Commands.⏹️`)
await rest.put(
Routes.applicationGuildCommand(
process.env.CLIENT_ID,
process.env.GUILD_ID),
{ body: commands }
)
console.log(`✔️ Slash Commands Were Registerd ✔️`)
} catch (error) {
console.log(`💣 Error happened The Error Is ==> "${error}" 🤔 `)
}
})();
require ('dotenv').config();
const { REST, Routes } = require ('discord.js')

const commands =[
{
name: 'storm',
description: 'Send A Storm',
},
];

const rest = new REST({ version:'0.10'}).setToken(process.env.TOKEN);


(async () => {
try {
console.log(`⏹️ Registering Slash Commands.⏹️`)
await rest.put(
Routes.applicationGuildCommand(
process.env.CLIENT_ID,
process.env.GUILD_ID),
{ body: commands }
)
console.log(`✔️ Slash Commands Were Registerd ✔️`)
} catch (error) {
console.log(`💣 Error happened The Error Is ==> "${error}" 🤔 `)
}
})();
The Error : => DiscordAPIError[0]: 404: Not Found I Need Help.
10 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
!                         Yousef
! YousefOP14mo ago
Okay give Me A Second.
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
!                         Yousef
! YousefOP14mo ago
DiscordAPIError[0]: 405: Method Not Allowed
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
!                         Yousef
! YousefOP14mo ago
No description
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
!                         Yousef
! YousefOP14mo ago
No description
!                         Yousef
! YousefOP14mo ago
omg Thanks I Spend A hour searching Thanks, @Jô 🌈🎃🦄👻Palestine Will Be Free
Want results from more Discord servers?
Add your server