Tsugami
Tsugami
SIASapphire - Imagine a framework
Created by Tsugami on 12/12/2022 in #sapphire-support
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",
5 replies