Closed MrShidoKageno closed 2 months ago
Function
module.exports = [{ name: "onMemberUpdate", type: "memberUpdate", channel: "$getGuildVar[logs;$guildID]", $if: "old", code: ` $if[$and[$oldMember[removedRoles]!=;$newMember[addedRoles]==]==true] $description[Роли участника **$username** (<@$authorID>) были изменены] $addField[Кто изменил;$getAuditLogs[$guildID;;1;25;**{executor.username}** ({executor.mention})];true] $addField[Удалены роли;**$oldMember[removedRoles]**;true] $footer[Id участника#COLON# $authorID;$authorAvatar] $color[#01e5d6] $addTimestamp $elseif[$and[$newMember[addedRoles]!=;$oldMember[removedRoles]==]==true] $description[Роли участника **$username** (<@$authorID>) были изменены] $addField[Кто изменил;$getAuditLogs[$guildID;;1;25;**{executor.username}** ({executor.mention})];true] $addField[Добавлены роли;**$newMember[addedRoles]**;true] $footer[Id участника#COLON# $authorID;$authorAvatar] $color[#01e5d6] $addTimestamp $endelseif $elseif[$and[$oldMember[removedRoles]!=;$newMember[addedRoles]!=]==true] $description[Роли участника **$username** (<@$authorID>) были изменены] $addField[Кто изменил;$getAuditLogs[$guildID;;1;25;**{executor.username}** ({executor.mention})];true] $addField[Удалены роли;**$oldMember[removedRoles]**;true] $addField[Добавлены роли;**$newMember[addedRoles]**;true] $footer[Id участника#COLON# $authorID;$authorAvatar] $color[#01e5d6] $addTimestamp $endelseif
v6.8.x
v22.5.1 (Current)
$newMember, $oldMember return the same data.
No console log.
Duplicate
Bug Type
Function
Bugged Behavior
Version of aoi.js
v6.8.x
Version of Node.js
v22.5.1 (Current)
Excepted Output
$newMember, $oldMember return the same data.
Relevant log output
No console log.
Code of Conduct