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:
parent
ca7b05ce78
commit
0f4f7b446d
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue