Timeout Error

Hello!
After this message you can see my current Code. I have a problem, that firstly, i get the error right here:
    if (timeMember.permissions.has(PermissionsBitField.Flags.Administrator)) return await interaction.reply({ content: `Du kannst keinen User mit Administrator Rechten timeouten!`, ephermeral: true })

TypeError: Cannot read properties of undefined (reading 'has') 


And secondly, if i just remove this, i get the error, from the
if (!timeMember.kickable) return await interaction.reply({....

but the user i test it on is not above the bot at all.
Was this page helpful?