feat(arabot): add disconnect from vc for restrictions

This commit is contained in:
smyalygames 2023-03-01 23:45:16 +00:00
parent bede3cadbe
commit 086d1d50c6

View File

@ -229,6 +229,11 @@ export async function restrictRun(
}
}
if (member !== undefined
&& member.voice.channelId !== null) {
await member.voice.disconnect();
}
// Restrict the user on the database
await restrict(userId, modId, reason, section);