#Show the error and code

1 messages · Page 1 of 1 (latest)

teal kindle
#

TypeError: Cannot read properties of undefined (reading 'Flags')
at Client.<anonymous> (C:\Users\Herku\OneDrive\Desktop\PatricijaDiscord\index.js:41:64)
at Client.emit (node:events:513:28)
at MessageCreateAction.handle (C:\Users\Herku\OneDrive\Desktop\PatricijaDiscord\node_modules\discord.js\src\client\actions\MessageCreate.js:28:14)

#

if(!message.member.permissions.has(PermissionsBitfield.Flags.BanMembers)) return message.channel.send("No permissions?!?");

acoustic fractal
#

It's PermissionsBit__F__ield or you can just use PermissionFlagsBits.BanMembers

teal kindle
#

ah ok

#

I guess I didn't capitalize the letter