3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 13:51:51 +00:00

added move_voice_channel trigger

This commit is contained in:
Almeida 2021-05-08 14:14:44 +01:00 committed by almeidx
parent ca7b05ce78
commit 0f4f7b446d
No known key found for this signature in database
GPG key ID: C5FF0C40763546C5
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ export const JoinVoiceChannelTrigger = automodTrigger<JoinVoiceChannelResult>()(
async match({ triggerConfig, context }) {
const matchedChannelId = context.voiceChannel?.joined?.id;
if (!context.member || !matchedChannelId) {
if (!context.member || !matchedChannelId || context.voiceChannel?.left) {
return;
}

View file

@ -13,7 +13,7 @@ export const LeaveVoiceChannelTrigger = automodTrigger<LeaveVoiceChannelResult>(
async match({ triggerConfig, context }) {
const matchedChannelId = context.voiceChannel?.left?.id;
if (!context.member || !matchedChannelId) {
if (!context.member || !matchedChannelId || context.voiceChannel?.joined) {
return;
}