Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

Tsugami
Tsugami12/12/2022
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)


my versions:
"discord-api-types": "^0.37.19",
"@sapphire/framework": "^3.1.1",
"discord.js": "^13.10.2",
RapLayer
RapLayer12/12/2022
The solution is to use version 0.33 of discord-api-types with Discord.js v13 / sapphire v3
Tsugami
Tsugami12/12/2022
it worked here! Thanks so much :pepe_heart:
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy