#Probably error name value in AuditLogs.changes

8 messages · Page 1 of 1 (latest)

velvet spear
#

Hello!

Version: 14.3.0

I'm trying testing fetchAuditLogs and the value of property key in type 25 (MemberRoleUpdate) it returns $add and $remove (with $ symbol) is it normal instead of add and remove values?
Code:

newMember.guild.fetchAuditLogs({
   limit: 1,
   type: 25, 
})
.then( (audit) => {
    const register = audit.entries.first()
    console.log(register.changes)
})

Output: Image

versed chasmBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

velvet spear
velvet spear
#

Probably type error in AuditLogs.changes

#

Probably error name value in AuditLogs.changes

hardy inlet
#

it is working as intended

versed chasmBOT
#

Suggestion for @velvet spear:
discord Audit Log: Audit Logs - Audit Log Change Object
Some events don't follow the same pattern as other audit log events. Details about these exceptions are explained in the next section
read more