mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-12-21 20:08:51 +01:00
feat(arabot): add disconnect from vc for restrictions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user