Verified bot check failed in some rare cases

const isVerifiedBot = await auditLogEntry.executor.flags.has(65536) ?? await memberObj.user.flags.has(65536)
const isVerifiedBot = await auditLogEntry.executor.flags.has(65536) ?? await memberObj.user.flags.has(65536)
Hello everyone, it only happens in very rare cases that this check fails and indicates to my bot that a user (verified bot) is not verified. What could be the cause?
4 Replies
d.js toolkit
d.js toolkit5mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Spleef
SpleefOP5mo ago
I'm working with guildAuditLogEntryCreate event, i'm just reading data inside auditLogEntry payload coming from the API The executer must be the correct one related to the listened event, no? var memberObj = await guild.members.fetch(auditLogEntry.executorId)
d.js docs
d.js docs5mo ago
:dtypes: v10: UserFlags - VerifiedBot read more
Spleef
SpleefOP5mo ago
This situation happens once every tens of thousands of checks...I think when it fails the reason is the lack of the flags property in both checks sure..
Want results from more Discord servers?
Add your server