Is client.user.verified bugged? #5226
-
Here's the narrowed-down code: let verified = 'Nah...';
if (client.user.verified) verified = 'Yep!!!'; It returns 'Yep!!!' even though I definitely know that my bot ISN'T verified. Is this verified being mistaken for unverified, or something wrong on my end? Full File (Very Long)const fs = require('fs');const { prefix, token, clientID, clientSecret, PARENT, HORSPERs, MVPs, VIPs, ULTRAs, SUPERs } = require('./config.json'); const Discord = require('discord.js'); const cooldowns = new Discord.Collection(); client.commands = new Discord.Collection(); const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js')); for (const file of commandFiles) {
} client.once('ready', () => { client.on('message', message => {
}); client.on('shardError', error => { process.on('unhandledRejection', error => { client.on('debug', console.debug); client.login(token); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, let verified = 'Nah...';
if (client.user.flags.has('VERIFIED_BOT')) verified = 'Yep!!!'; |
Beta Was this translation helpful? Give feedback.
Hello,
If you want to check if your bot is verified you should use the user flags property.