mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
Update Member.ts
This commit is contained in:
parent
08e38f005e
commit
ffb3adbacd
@ -137,7 +137,7 @@ export async function addRole(user_id: string, guild_id: string, role_id: string
|
||||
|
||||
if(!memberObj) throw new Error("Internal server error");
|
||||
|
||||
emitEvent({
|
||||
await emitEvent({
|
||||
event: "GUILD_MEMBER_UPDATE",
|
||||
data: {
|
||||
guild_id: guild_id,
|
||||
@ -166,7 +166,7 @@ export async function removeRole(user_id: string, guild_id: string, role_id: str
|
||||
|
||||
if(!memberObj) throw new Error("Internal server error");
|
||||
|
||||
emitEvent({
|
||||
await emitEvent({
|
||||
event: "GUILD_MEMBER_UPDATE",
|
||||
data: {
|
||||
guild_id: guild_id,
|
||||
|
Loading…
Reference in New Issue
Block a user