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

Fix log bugs

This commit is contained in:
Dark 2021-07-29 19:08:22 +02:00
parent bbac9c1f13
commit ea8a02f8b2
2 changed files with 5 additions and 2 deletions

View file

@ -17,13 +17,13 @@ export const LogsVoiceStateUpdateEvt = logsEvt({
// Leave evt
meta.pluginData.state.guildLogs.log(LogType.VOICE_CHANNEL_LEAVE, {
member: memberToConfigAccessibleMember(member),
oldChannel: channelToConfigAccessibleChannel(oldChannel!),
channel: channelToConfigAccessibleChannel(oldChannel!),
});
} else if (!oldChannel && newChannel) {
// Join Evt
meta.pluginData.state.guildLogs.log(LogType.VOICE_CHANNEL_JOIN, {
member: memberToConfigAccessibleMember(member),
newChannel: channelToConfigAccessibleChannel(newChannel),
channel: channelToConfigAccessibleChannel(newChannel),
});
} else {
meta.pluginData.state.guildLogs.log(LogType.VOICE_CHANNEL_MOVE, {