i got a bunch of typescript errors

look at the picture
10 Replies
fried
friedOP2y ago
this my index.ts
import { SapphireClient } from "@sapphire/framework";
import { config } from "dotenv";
config();

const client = new SapphireClient({ intents: ["Guilds"] });

client.login(process.env.TOKEN);
import { SapphireClient } from "@sapphire/framework";
import { config } from "dotenv";
config();

const client = new SapphireClient({ intents: ["Guilds"] });

client.login(process.env.TOKEN);
fried
friedOP2y ago
when i start my bot i get this error
Sawako
Sawako2y ago
use djs v13
fried
friedOP2y ago
how do i do that
Sawako
Sawako2y ago
npm install discord.js@v13-lts
fried
friedOP2y ago
latest is 13.12.0 i think ok
fried
friedOP2y ago
im getting this error now
fried
friedOP2y ago
Favna
Favna2y ago
Looks like you have some wrong dependency versions still. If this is a new bot, try using the Sapphire CLI to generate it to get the right versions. For example don't have discord-api-types higher than 0.33.5
Krish
Krish2y ago
Seems like dapi types error
Want results from more Discord servers?
Add your server