Sapphire - Imagine a framework
Sapphire - Imagine a framework

sapphire-support

Root Question Message

TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
'"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 ?
Krish
Krish3/15/2023
Did you change anything after cli generated your template?
TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
yeh
TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
WebhookEditMessageOptions to WebhookFetchMessageOptions
Favna
Favna3/15/2023
First of all, it's WebhookMessageEditOptions
Favna
Favna3/15/2023
Secondly, this is why you always first update your dependencies.
Chillihero
Chillihero3/15/2023
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.
TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
just update the dependencies
TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
yarn up
Chillihero
Chillihero3/15/2023
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"
Favna
Favna3/15/2023
dedupe your dependencies
Favna
Favna3/15/2023
and update discordjs
Chillihero
Chillihero3/15/2023
dedupe?
Favna
Favna3/15/2023
like tirup said, update your dependencies
TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
mine solved by updating
TirupatibalajiTheDev
TirupatibalajiTheDev3/15/2023
uninstall and install again can also solve *i think
Favna
Favna3/15/2023
same as deduping but chilli should first update their deps
Chillihero
Chillihero3/15/2023
upgrading djs fixed it
Favna
Favna3/15/2023
now start keeping all your deps up-to-date
Chillihero
Chillihero3/15/2023
thats why i have renovate installed for exactly this
Favna
Favna3/15/2023
good lord
Favna
Favna3/15/2023
that config is way more complex than that of sapphire lol
Favna
Favna3/15/2023
feels like you are extending stuff you dont even need
Chillihero
Chillihero3/15/2023
i have that feeling too, but dont change things on a running system
Favna
Favna3/15/2023
for example you dont even have a mono repo
Favna
Favna3/15/2023
then why use mono repo config
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy