#Version mismatch

1 messages · Page 1 of 1 (latest)

crystal wagon
#

Don't think so

    "discord-api-types": "^0.33.5",
    "discord.js": "^14.6.0",

solid shoal
#

Uninstall dapi-types, v14 re-exports everything from there

crystal wagon
#

Done. However, it did not fix my problem.

#

The error happens when passing channel into permissionsIn

import { GuildChannel, PermissionFlagsBits, GuildMember } from "discord.js";

function channelPermissions(channel: GuildChannel) {
    return channel.guild.members.cache.find(m => m.id === process.env.CLIENT_ID)?.permissionsIn(channel);
}
solid shoal
#

NonThreadGuildBasedChannel might be what you‘re looking for… but I‘m not an expert on the djs typings