Chore: Tiny cleanup
This commit is contained in:
parent
95fee833a1
commit
68e8218b1b
2 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,6 @@ export function ErrorResponse<
|
||||||
error: error ?? httpStatus[`${httpStatus[code]}_NAME`],
|
error: error ?? httpStatus[`${httpStatus[code]}_NAME`],
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(responseData);
|
|
||||||
return new Response(JSON.stringify(responseData), {
|
return new Response(JSON.stringify(responseData), {
|
||||||
status: httpStatus[code],
|
status: httpStatus[code],
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
@ -91,7 +91,7 @@ const getPayload = async (
|
||||||
"User is no MANAGE_GUILD permissions on this guild with requested id!",
|
"User is no MANAGE_GUILD permissions on this guild with requested id!",
|
||||||
};
|
};
|
||||||
|
|
||||||
let channels: ReturnType<typeof initialValue>["guild"]["channels"] = [];
|
const channels: ReturnType<typeof initialValue>["guild"]["channels"] = [];
|
||||||
channelsRequest.data?.forEach((channel) => {
|
channelsRequest.data?.forEach((channel) => {
|
||||||
if (channel.type !== 0) return;
|
if (channel.type !== 0) return;
|
||||||
channels.push({
|
channels.push({
|
||||||
|
@ -108,7 +108,6 @@ const getPayload = async (
|
||||||
id: guild.id,
|
id: guild.id,
|
||||||
name: guild.name,
|
name: guild.name,
|
||||||
icon: guild.icon,
|
icon: guild.icon,
|
||||||
// channel: "1162917335275950180",
|
|
||||||
channel: "",
|
channel: "",
|
||||||
channels,
|
channels,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue