bot perms

anyone knows why is this not working?

i don't have a handler, its on the start of the code right above the commands

if(!message.guild.me.permissions.has(PermissionsBitField.Flags.EmbedLinks)) return message.channel.send("reply")


i have this in client "PermissionsBitField"

and other regular perms in commands work, for example
if (!message.member.permissions.has(PermissionsBitField.Flags.ManageMessages)) return message.channel.send('reply')

this works, and thats why i can't understand why the first line isn't working, they are in the same file and everything

the exact error is TypeError: Cannot read properties of undefined (reading 'permissions')
Was this page helpful?