Omr
Omr
DIAdiscord.js - Imagine an app
Created by Omr on 10/1/2024 in #djs-voice
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'
thank you 💯
6 replies
DIAdiscord.js - Imagine an app
Created by Omr on 10/1/2024 in #djs-voice
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'
"dependencies": {
"@discordjs/voice": "^0.17.0",
"@prisma/client": "^5.20.0",
"discord-api-types": "^0.37.101",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"libsodium-wrappers": "^0.7.15",
"markov-strings": "^3.0.1",
"moment": "^2.30.1",
"mongodb": "^6.9.0"
},
"devDependencies": {
"nodemon": "^3.1.7",
"prettier": "^3.3.3",
"prisma": "^5.20.0",
"typescript": "^5.6.2"
},
"resolutions": {
"discord-api-types": "0.37.100"
}
"dependencies": {
"@discordjs/voice": "^0.17.0",
"@prisma/client": "^5.20.0",
"discord-api-types": "^0.37.101",
"discord.js": "^14.16.3",
"dotenv": "^16.4.5",
"libsodium-wrappers": "^0.7.15",
"markov-strings": "^3.0.1",
"moment": "^2.30.1",
"mongodb": "^6.9.0"
},
"devDependencies": {
"nodemon": "^3.1.7",
"prettier": "^3.3.3",
"prisma": "^5.20.0",
"typescript": "^5.6.2"
},
"resolutions": {
"discord-api-types": "0.37.100"
}
downgraded from 0.37.101 to 0.37.100 and the issue was fixed
6 replies
DIAdiscord.js - Imagine an app
Created by Omr on 10/1/2024 in #djs-voice
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'
I've tried to delete my node_modules and pnpm lockfile, reinstall typescript, discord.js, @discordjs/voice, etc. Restarting the TS server on vs code, reloading the window, even asking chatgpt. Can't seem to figure out why its giving me this error all of the sudden when its never happened before
6 replies
DIAdiscord.js - Imagine an app
Created by Omr on 10/1/2024 in #djs-voice
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'.
Types of parameters 'methods' and 'methods' are incompatible.
Type 'DiscordGatewayAdapterLibraryMethods' is not assignable to type 'InternalDiscordGatewayAdapterLibraryMethods'.
Types of property 'onVoiceStateUpdate' are incompatible.
Type '(data: GatewayVoiceState) => void' is not assignable to type '(data: APIVoiceState) => void'.
Types of parameters 'data' and 'data' are incompatible.
Type 'APIVoiceState' is not assignable to type 'GatewayVoiceState'.
Types of property 'member' are incompatible.
Type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember | undefined' is not assignable to type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember | undefined'.
Type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember' is not assignable to type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember'.
Types of property 'flags' are incompatible.
Type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").GuildMemberFlags' is not assignable to type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").GuildMemberFlags'.
Property 'IsGuest' is missing in type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").GuildMemberFlags'.ts(2322)
index.d.ts(1545, 5): The expected type comes from property 'adapterCreator' which is declared here on type 'CreateVoiceConnectionOptions & JoinVoiceChannelOptions'
Type 'InternalDiscordGatewayAdapterCreator' is not assignable to type 'DiscordGatewayAdapterCreator'.
Types of parameters 'methods' and 'methods' are incompatible.
Type 'DiscordGatewayAdapterLibraryMethods' is not assignable to type 'InternalDiscordGatewayAdapterLibraryMethods'.
Types of property 'onVoiceStateUpdate' are incompatible.
Type '(data: GatewayVoiceState) => void' is not assignable to type '(data: APIVoiceState) => void'.
Types of parameters 'data' and 'data' are incompatible.
Type 'APIVoiceState' is not assignable to type 'GatewayVoiceState'.
Types of property 'member' are incompatible.
Type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember | undefined' is not assignable to type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember | undefined'.
Type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember' is not assignable to type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").APIGuildMember'.
Types of property 'flags' are incompatible.
Type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").GuildMemberFlags' is not assignable to type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").GuildMemberFlags'.
Property 'IsGuest' is missing in type 'import("/home/name/Dev/bot/node_modules/.pnpm/[email protected]/node_modules/discord-api-types/payloads/v10/guild").GuildMemberFlags'.ts(2322)
index.d.ts(1545, 5): The expected type comes from property 'adapterCreator' which is declared here on type 'CreateVoiceConnectionOptions & JoinVoiceChannelOptions'
6 replies