Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User.flags.toArray() return value always includes None flag. #7374

Closed
N1ckPro opened this issue Jan 31, 2022 · 0 comments · Fixed by discordjs/discord-api-types#308
Closed

Comments

@N1ckPro
Copy link
Contributor

N1ckPro commented Jan 31, 2022

Which package is this bug report for?

discord.js

Issue description

Use the code sample below on a user with any flags.
Logged array will include None even though the user has flags.

Code sample

const flags = await message.author.fetchFlags() // Message author needs to have any flags
console.log(flags.toArray())

Package version

discord.js@14.0.0-dev.1643544396.388f535

Node.js version

16.13.1

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

Which partials do you have configured?

User

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildMessages

I have tested this issue on a development release

388f535

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants