'"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhookFetchM

Error: '"discord.js"' has no exported member named 'WebhookEditMessageOptions'. Did you mean 'WebhookFetchMessageOptions' Project Created with sapphire new - typescript complete I just changed WebhookEditMessageOptions with WebhookEditMessageOptions is it ok ?
Solution:
<:_:898645160219521134> WebhookFetchMessageOptions Options that can be passed into fetchMessage....
Jump to solution
23 Replies
Krish
Krish2y ago
Did you change anything after cli generated your template?
Tirupati[E3S1PRO]
yeh
Tirupati[E3S1PRO]
WebhookEditMessageOptions to WebhookFetchMessageOptions
Solution
Spinel
Spinel2y ago
<:_:898645160219521134> WebhookFetchMessageOptions Options that can be passed into fetchMessage.
Spinel
Spinel2y ago
<:_:898645160219521134> WebhookEditMessageOptions Options that can be passed into editMessage.
Favna
Favna2y ago
First of all, it's WebhookMessageEditOptions Secondly, this is why you always first update your dependencies.
chillihero
chillihero2y ago
I dont get what the solution is, I have the same Issue when building. I have the latest version of discord-js-utilities (according to rerovate at least) and just installed all the dependencies again.
Tirupati[E3S1PRO]
just update the dependencies yarn up
chillihero
chillihero2y ago
this does nothing my dependencies:
"@devtomio/plugin-botlist": "^1.3.0",
"@discordjs/builders": "^1.5.0",
"@sapphire/cron": "^1.0.0",
"@sapphire/decorators": "^6.0.0",
"@sapphire/discord.js-utilities": "^6.0.4",
"@sapphire/fetch": "^2.4.1",
"@sapphire/framework": "^4.2.2",
"@sapphire/plugin-api": "^5.0.1",
"@sapphire/plugin-editable-commands": "^3.0.0",
"@sapphire/plugin-hmr": "^2.0.0",
"@sapphire/plugin-i18next": "^5.0.1",
"@sapphire/plugin-logger": "^3.0.1",
"@sapphire/plugin-scheduled-tasks": "^6.0.0",
"@sapphire/plugin-subcommands": "^4.0.0",
"@sapphire/stopwatch": "^1.5.0",
"@sapphire/time-utilities": "^1.7.8",
"@sapphire/type": "^2.3.0",
"@sapphire/utilities": "^3.11.0",
"@types/node-cron": "^3.0.7",
"bullmq": "^3.10.1",
"colorette": "^2.0.19",
"discord-api-types": "^0.37.36",
"discord.js": "^14.7.1",
"lib": "^5.0.1",
"mysql2": "^3.2.0",
"node-cron": "^3.0.2",
"pm2": "^5.2.2",
"reflect-metadata": "^0.1.13",
"sequelize": "^6.29.3"
"@devtomio/plugin-botlist": "^1.3.0",
"@discordjs/builders": "^1.5.0",
"@sapphire/cron": "^1.0.0",
"@sapphire/decorators": "^6.0.0",
"@sapphire/discord.js-utilities": "^6.0.4",
"@sapphire/fetch": "^2.4.1",
"@sapphire/framework": "^4.2.2",
"@sapphire/plugin-api": "^5.0.1",
"@sapphire/plugin-editable-commands": "^3.0.0",
"@sapphire/plugin-hmr": "^2.0.0",
"@sapphire/plugin-i18next": "^5.0.1",
"@sapphire/plugin-logger": "^3.0.1",
"@sapphire/plugin-scheduled-tasks": "^6.0.0",
"@sapphire/plugin-subcommands": "^4.0.0",
"@sapphire/stopwatch": "^1.5.0",
"@sapphire/time-utilities": "^1.7.8",
"@sapphire/type": "^2.3.0",
"@sapphire/utilities": "^3.11.0",
"@types/node-cron": "^3.0.7",
"bullmq": "^3.10.1",
"colorette": "^2.0.19",
"discord-api-types": "^0.37.36",
"discord.js": "^14.7.1",
"lib": "^5.0.1",
"mysql2": "^3.2.0",
"node-cron": "^3.0.2",
"pm2": "^5.2.2",
"reflect-metadata": "^0.1.13",
"sequelize": "^6.29.3"
Favna
Favna2y ago
dedupe your dependencies and update discordjs
chillihero
chillihero2y ago
dedupe?
Favna
Favna2y ago
like tirup said, update your dependencies
Tirupati[E3S1PRO]
mine solved by updating uninstall and install again can also solve *i think
Favna
Favna2y ago
same as deduping but chilli should first update their deps
chillihero
chillihero2y ago
upgrading djs fixed it
Favna
Favna2y ago
now start keeping all your deps up-to-date
chillihero
chillihero2y ago
thats why i have renovate installed for exactly this https://github.com/BirthdayyBot/BirthdayyBotSapphire/blob/develop/renovate.json
Favna
Favna2y ago
good lord that config is way more complex than that of sapphire lol feels like you are extending stuff you dont even need
chillihero
chillihero2y ago
i have that feeling too, but dont change things on a running system
Favna
Favna2y ago
for example you dont even have a mono repo then why use mono repo config
Noxillio
Noxillio2y ago
I'm getting this same exact problem with a brand new project using the TS Complete template from sapphire new - my installation of @sapphire/cli is brand new as well. I am using NPM and running npm update and installing the latest version of discord.js are not helping. Please advise. If I should create my own thread please let me know. Essentially all I did was put my token in the .env then try to run npm run dev and immediately got this same exact error. Okay I'm not sure what I did, but it seems that specifically using npm i [email protected] (despite npm i discord.js installing the exact same version as the former) works. Will test again in a moment to confirm. Nope, that wasn't it alone. Ffs Okay, I figured it out. The template installs @sapphire/discord.js-utilities version 6.0.3. This version will not work, even with the discord.js version that also gets installed, which is 14.7.1. I had to manually update it to 6.0.4 using npm i @sapphire/discord.js-utilities@latest, because npm i @sapphire/discord.js-utilities would not install the newer version. Is this not a bug with the template? It shouldn't be using broken deps lol
Favna
Favna2y ago
That's because npm install never updates dependencies when they're already installed. You need to run npm update for that. That said, when using npm you should either use npx npm-upgrade or install the version lens vscode extension. Much more reliable As for why the sample installs outdated dependencies, that's because the examples are static rather than dynamically generated. Same as something like how NextJS does it.
Noxillio
Noxillio2y ago
I will try this next time. It didn't seem like npm update did anything Thank you
Want results from more Discord servers?
Add your server