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}`,
|
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 {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
info: response.data,
|
info: response.data,
|
||||||
status: statusResponse.data,
|
|
||||||
}),
|
}),
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user