Dependency conflict (discord-api-types)

I installed discord-api-types and now it conflicts with sapphire (or discord.js) version of discord-api-types, how can I fix this?
src/commands/moderators/settings.ts:68:40 - error TS2345: Argument of type 'ChannelType.GuildText' is not assignable to parameter of type 'ChannelType.GuildText | ChannelType.GuildVoice | ChannelType.GuildCategory | ChannelType.GuildNews | ChannelType.GuildNewsThread | ChannelType.GuildPublicThread | ChannelType.GuildPrivateThread | ChannelType.GuildStageVoice'.

68 .addChannelTypes(ChannelType.GuildText)
src/commands/moderators/settings.ts:68:40 - error TS2345: Argument of type 'ChannelType.GuildText' is not assignable to parameter of type 'ChannelType.GuildText | ChannelType.GuildVoice | ChannelType.GuildCategory | ChannelType.GuildNews | ChannelType.GuildNewsThread | ChannelType.GuildPublicThread | ChannelType.GuildPrivateThread | ChannelType.GuildStageVoice'.

68 .addChannelTypes(ChannelType.GuildText)
my versions:
"discord-api-types": "^0.37.19",
"@sapphire/framework": "^3.1.1",
"discord.js": "^13.10.2",
"discord-api-types": "^0.37.19",
"@sapphire/framework": "^3.1.1",
"discord.js": "^13.10.2",
Solution:
The solution is to use version 0.33 of discord-api-types with Discord.js v13 / sapphire v3
Jump to solution
2 Replies
Solution
Alex
Alex2y ago
The solution is to use version 0.33 of discord-api-types with Discord.js v13 / sapphire v3
Tsugami
TsugamiOP2y ago
it worked here! Thanks so much <:pepe_heart:996520917788266607>
Want results from more Discord servers?
Add your server