What Im doing wrong?
im trying to make a request trough API but instead I got 403 error everytime I try
const { get, post } = require('axios');
let { data } = await get(`https://discord.com/api/users/${message.author.id}/profile?guild_id=${message.guild.id}`,
{
headers:
{
"Authorization": "Bot " + TOKEN,
"Content-Type": "application/json"
}
});
message.reply(data);const { get, post } = require('axios');
let { data } = await get(`https://discord.com/api/users/${message.author.id}/profile?guild_id=${message.guild.id}`,
{
headers:
{
"Authorization": "Bot " + TOKEN,
"Content-Type": "application/json"
}
});
message.reply(data);