Deno Vscode type checking randomly gets wrong types for discord.js EmbedBuilder
EmbedBuilder in discord.js extends BuildersEmbed, but randomly (cant figure out what causes it) while developing, deno decides EmbedBuilder is not extending any other class, and only the setColor, etc methods are available, and opening the type file, the setColor method has this error
This member cannot have an override modifier because its containing class does not extend another class.
which is clearly untrue.
Running deno check
results in no errors. My import import { WebhookClient, EmbedBuilder } from "npm:discord.js";
Reloading the vscode window fixes the issue2 Replies
bump!
@bluescorpian519 i've fixed this issue by removing node_modules folder, downgrading to 2.0.0 and installing the modules back again
thanks a lot, I will try that if I encounter the issue again.