delete broken status response from function
This commit is contained in:
@@ -6,20 +6,10 @@ exports.handler = async function(event, context) {
|
||||
Authorization: `Bot ${process.env.token}`,
|
||||
},
|
||||
});
|
||||
let statusResponse = await axios.get(
|
||||
`https://discord.com/api/v9/users/@me/connections`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bot ${process.env.token}`,
|
||||
},
|
||||
}
|
||||
);
|
||||
console.log(statusResponse.data);
|
||||
return {
|
||||
statusCode: 200,
|
||||
body: JSON.stringify({
|
||||
info: response.data,
|
||||
status: statusResponse.data,
|
||||
}),
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
|
||||
Reference in New Issue
Block a user