Skip to content

common errors

IMXNOOBX edited this page May 10, 2024 · 1 revision

Common Errors 🥺

1. Failed to log in: TokenInvalid

This error is caused by an invalid token. Make sure you have the correct token in your .env file in the key BOT_TOKEN. You can get the token from the Discord Developer Portal.

It should look like this

BOT_TOKEN=your-token-here

TokenInvalid

2. DiscordAPIError[10002]: Unknown Application

This error is caused by an invalid client ID. Make sure you have the correct client ID in your .env file in the key CLIENT_ID. You can get the client ID from the Discord Developer Portal.

It should look like this

CLIENT_ID=your-client-id-here

UnknownApplication

3. DiscordAPIError[50035]: Invalid Form Body

This error is caused by an invalid command structure. Make sure you have the correct command name and description in your commands/slash/ folder. This only applies to the slash commands.

It should look like this

module.exports = {
    name: 'pingo',
    description: 'Check bots ping',
    run: async (client, interaction) => {
        interaction.followUp({ content: `> 🚀 ping? *\`${client.ws.ping}\`*` })
    }
};

Important

If you need more help i suggest you join this community