🐛 convert bigint -> string
This commit is contained in:
@@ -77,7 +77,7 @@ router.get("/", async (req: Request, res: Response) => {
|
||||
delete x.user_ids;
|
||||
});
|
||||
// @ts-ignore
|
||||
if (!x.author) x.author = { discriminator: "0000", username: "Deleted User", public_flags: 0n, avatar: null };
|
||||
if (!x.author) x.author = { discriminator: "0000", username: "Deleted User", public_flags: "0", avatar: null };
|
||||
|
||||
return x;
|
||||
});
|
||||
|
||||
@@ -47,7 +47,7 @@ router.post("/", check(GuildCreateSchema), async (req: Request, res: Response) =
|
||||
premium_tier: 0,
|
||||
public_updates_channel_id: undefined,
|
||||
rules_channel_id: undefined,
|
||||
system_channel_flags: 0,
|
||||
system_channel_flags: "0",
|
||||
system_channel_id: undefined,
|
||||
unavailable: false,
|
||||
vanity_url_code: undefined,
|
||||
|
||||
Reference in New Issue
Block a user