diff --git a/src/commands/mod/restriction/restrict.ts b/src/commands/mod/restriction/restrict.ts index d0ba3bb..f338a6e 100644 --- a/src/commands/mod/restriction/restrict.ts +++ b/src/commands/mod/restriction/restrict.ts @@ -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);