summary refs log tree commit diff
path: root/src/routes
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-25 23:35:19 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-25 23:35:19 +0200
commitc2d696d66ede48ee06e90bf8896d60e4dc6894de (patch)
treeb44a297521872060ef64fadccd510b2f0d3fcb59 /src/routes
parent:art: formatting files (diff)
downloadserver-c2d696d66ede48ee06e90bf8896d60e4dc6894de.tar.xz
:sparkles: added dev server
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/channels/#channel_id/messages/bulk-delete.ts2
-rw-r--r--src/routes/users/@me/guilds.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/channels/#channel_id/messages/bulk-delete.ts b/src/routes/channels/#channel_id/messages/bulk-delete.ts
index bf71404a..6ac4d8de 100644
--- a/src/routes/channels/#channel_id/messages/bulk-delete.ts
+++ b/src/routes/channels/#channel_id/messages/bulk-delete.ts
@@ -34,5 +34,5 @@ router.post("/", check({ messages: [String] }), async (req, res) => {
 		data: { ids: messages, channel_id, guild_id: channel.guild_id },
 	} as MessageDeleteBulkEvent);
 
-	res.status(204).send();
+	res.sendStatus(204);
 });
diff --git a/src/routes/users/@me/guilds.ts b/src/routes/users/@me/guilds.ts
index 5042c17c..6528552b 100644
--- a/src/routes/users/@me/guilds.ts
+++ b/src/routes/users/@me/guilds.ts
@@ -49,7 +49,7 @@ router.delete("/:id", async (req: Request, res: Response) => {
 		guild_id: guild_id,
 	} as GuildMemberRemoveEvent);
 
-	return res.status(204).send();
+	return res.sendStatus(204);
 });
 
 export default router;