discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.38k stars 3.97k forks source link

fetchApplication() Error #3029

Closed IDjinn closed 5 years ago

IDjinn commented 5 years ago

Please describe the problem you are having in as much detail as possible: I'm trying to use the fetchApplication () method, but it results in the Error of the Discord API   `name: 'DiscordAPIError',    message: 'Bots can not use this endpoint'    path: '/ api / v7 / oauth2 / applications / @ me',    code: 20001,    method: 'GET'

Include a reproducible code sample here, if possible:


client.appInfo = await client.fetchApplication (). then (application => console.log (`Obtained application with name: $ {application.name}`))
.catch (console.error)
setInterval (async () => {
client.appInfo = await client.fetchApplication (). then (application => console.log (`Obtained application with name: $ {application.name}`))
     .catch (console.error)
}, 60000);

Further details:

kyranet commented 5 years ago

Related to https://github.com/discordapp/discord-api-docs/issues/815

SpaceEEC commented 5 years ago

Discord has resolved that issue, see the referenced issue ^

zeroidentidad commented 3 years ago

Discord has resolved that issue, see the referenced issue ^

where?