-
Part of the guide or code sample the question is aboutI'm using import { REST, Routes } from 'discord.js';
const commands = [
{
name: 'ping',
description: 'Replies with Pong!',
},
];
const rest = new REST({ version: '10' }).setToken(TOKEN);
try {
console.log('Started refreshing application (/) commands.');
await rest.put(Routes.applicationCommands(CLIENT_ID), { body: commands });
console.log('Successfully reloaded application (/) commands.');
} catch (error) {
console.error(error);
} Following Error appears: Caution DiscordAPIError[10002]: Unknown Application The The Client-ID is the same like the Application-ID: QuestionWhy do I get an 'Unknown Application' via the REST-API? Via |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You get an unknown application because the application does not exist. Before you say "But it does", you're using the wrong application id: |
Beta Was this translation helpful? Give feedback.
You get an unknown application because the application does not exist. Before you say "But it does", you're using the wrong application id: