mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 01:14:16 +02:00
feat(arabot): add disconnect from vc for restrictions
This commit is contained in:
parent
bede3cadbe
commit
086d1d50c6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user