How can I check the permissions in @discordjs/core
How can I check the permissions of my bot & the member who sent the message (or interacted with a component) in the handler of the corresponding event?
npm list discord.js and node node -v version?<Message>/<Interaction>.member.permissions and <Message/Interaction>.guild.members.me.permissions<Message>.member.permissions returns undefined;<Message>.guild.members.me.permissions returns TypeError: Cannot read properties of undefined (reading 'members')<Interaction>.guild.members.me.permissions returns TypeError: Cannot read properties of undefined (reading 'me')<Interaction>.member.permissions returns 562949953421311 (contains a valid value)GuildMembers intent?(await <Message>.guild.members.fetchMe()).permissions returns TypeError: Cannot read properties of undefined (reading 'members')(await <Interaction>.guild.members.fetchMe()).permissions returns TypeError: Cannot read properties of undefined (reading 'fetchMe')<APIInteraction>.app_permissions as the resolved permissions of the bot in the interaction's channel<Interaction>.guild.members.me.permissions, you'd need to setup some caching of your own for roles and members<APIInteractionGuildMember>.permissions only exists in interaction payloads, so <APIInteraction>.member.permissions will exist