Skip to content

Commit

Permalink
✨ Added way to disconnect a member from a voice channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed Apr 21, 2024
1 parent 4d7b80a commit 7c8644e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public class MoveMember extends AsyncEffect {
static {
Skript.registerEffect(
MoveMember.class,
"[voice] move [the] discord [member] %member% to [a] [voice[( |-)channel]] %voicechannel%"
"[voice] move [the] discord [member] %member% to [a] [voice[( |-)channel]] %voicechannel%",
"[voice] disconnect [the] discord [member] %member%"
);
}

Expand All @@ -49,7 +50,7 @@ public void execute(@NotNull Event e) {
final Member member = parseSingle(exprMember, e, null);
final VoiceChannel voice = parseSingle(exprVoiceChannel, e, null);

if (member == null || voice == null) {
if (member == null) {
return;
}

Expand Down

0 comments on commit 7c8644e

Please sign in to comment.