#Version mismatch
1 messages · Page 1 of 1 (latest)
Uninstall dapi-types, v14 re-exports everything from there
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);
}
NonThreadGuildBasedChannel might be what you‘re looking for… but I‘m not an expert on the djs typings