Any ideas?

I don’t wanna hardcode the bitfield and im guessing that i did this the wrong way somehow anyone got any ideas about them mfs?
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.
throw new DiscordjsRangeError(ErrorCodes.BitFieldInvalid, bit);
^

RangeError [BitFieldInvalid]: Invalid bitfield flag or number: undefined.
if (member.permissions.has(PermissionsBitField.Flags.KickMembers)) {
console.log('meow meow')
}
if (member.permissions.has(PermissionsBitField.Flags.KickMembers)) {
console.log('meow meow')
}
No description
5 Replies
d.js toolkit
d.js toolkit3mo 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! - Marked as resolved by OP
treble/luna
treble/luna3mo ago
what is your djs version also can you show the full code and error
Gemo
GemoOP3mo ago
"discord.js": "^14.16.1" and that IS the full code
treble/luna
treble/luna3mo ago
then that would error since member is not defined
Gemo
GemoOP3mo ago
now i gotta hit my head on the door for forgetting to define member
Want results from more Discord servers?
Add your server