summary refs log tree commit diff
path: root/src/util/Member.ts
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-08 13:10:30 +0200
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-08 13:10:30 +0200
commitf15e339611dd2884d19f377d7cebe6bc4a7e2973 (patch)
tree2e30ae3aa4ce30d8ae396b8eb0d12699e738a5e2 /src/util/Member.ts
parentUpdate Member.ts (diff)
downloadserver-f15e339611dd2884d19f377d7cebe6bc4a7e2973.tar.xz
Update Member.ts
Diffstat (limited to '')
-rw-r--r--src/util/Member.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/Member.ts b/src/util/Member.ts
index bf48f993..fca3de95 100644
--- a/src/util/Member.ts
+++ b/src/util/Member.ts
@@ -132,7 +132,7 @@ export async function addRole(user_id: string, guild_id: string, role_id: string
 			guild_id: guild_id,
 		}, { $push: { roles: role_id } }).exec();
 
-		if(!memberObj) throw new HTTPError("Member not found", 404);
+	if(!memberObj) throw new HTTPError("Member not found", 404);
 	
 	await emitEvent({
 		event: "GUILD_MEMBER_UPDATE",
@@ -142,7 +142,7 @@ export async function addRole(user_id: string, guild_id: string, role_id: string
 			roles: memberObj.roles
 		
 		},
-		user_id: user_id,
+		guild_id: guild_id,
 	} as GuildMemberUpdateEvent);
 
 }
@@ -168,7 +168,7 @@ export async function removeRole(user_id: string, guild_id: string, role_id: str
 			roles: memberObj.roles
 		
 		},
-		user_id: user_id,
+		guild_id: guild_id,
 	} as GuildMemberUpdateEvent);
 
 }