#How to register commands to get the icon?

2 messages · Page 1 of 1 (latest)

hallow tapir
#

I trying to register my commands but i get this error: BASE_TYPE_REQUIRED

             axios.post(`https://discord.com/api/v10/applications/${client.user.id}/commands`, { body: client.slashcommandData }, {
          headers: {
            'Authorization': `Bot ${config.token}`,
            'Content-Type': 'application/json'
          }
        }).then(res => {
          console.log(res)
        }).catch(err => {
          console.log(err.response.data.errors)
          console.log(err.response.data.errors.name)
        })
forest acornBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.