summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--api/src/routes/channels/#channel_id/messages/index.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/api/src/routes/channels/#channel_id/messages/index.ts b/api/src/routes/channels/#channel_id/messages/index.ts
index 3b35b604..c2057422 100644
--- a/api/src/routes/channels/#channel_id/messages/index.ts
+++ b/api/src/routes/channels/#channel_id/messages/index.ts
@@ -247,11 +247,12 @@ router.post(
 	
 	    //Defining member fields
 		var member = await Member.findOneOrFail({ where: { id: req.user_id }, relations: ["roles"] });
-        member.roles = member.roles.filter((role) => {
-			return role.id !== role.guild_id;
-		}).map((role) => {
-			return role.id;
-		});
+		// TODO: This doesn't work either
+        // member.roles = member.roles.filter((role) => {
+		// 	return role.id !== role.guild_id;
+		// }).map((role) => {
+		// 	return role.id;
+		// });
 		message.member = member;
 		// TODO: Figure this out
 		// delete message.member.last_message_id;