'"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....
K
Krish419d ago
Did you change anything after cli generated your template?
T
Tirupati[E3S1PRO]419d ago
yeh
T
Tirupati[E3S1PRO]419d ago
WebhookEditMessageOptions to WebhookFetchMessageOptions
Solution
S
Spinel419d ago
<:_:898645160219521134> WebhookFetchMessageOptions Options that can be passed into fetchMessage.
S
Spinel419d ago
<:_:898645160219521134> WebhookEditMessageOptions Options that can be passed into editMessage.
F
Favna419d ago
First of all, it's WebhookMessageEditOptions Secondly, this is why you always first update your dependencies.
C
chillihero419d 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.
T
Tirupati[E3S1PRO]419d ago
just update the dependencies yarn up
C
chillihero419d 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"
F
Favna419d ago
dedupe your dependencies and update discordjs
C
chillihero419d ago
dedupe?
F
Favna419d ago
like tirup said, update your dependencies
T
Tirupati[E3S1PRO]419d ago
mine solved by updating uninstall and install again can also solve *i think
F
Favna419d ago
same as deduping but chilli should first update their deps
C
chillihero419d ago
upgrading djs fixed it
F
Favna419d ago
now start keeping all your deps up-to-date
C
chillihero419d ago
thats why i have renovate installed for exactly this https://github.com/BirthdayyBot/BirthdayyBotSapphire/blob/develop/renovate.json
F
Favna419d ago
good lord that config is way more complex than that of sapphire lol feels like you are extending stuff you dont even need
C
chillihero419d ago
i have that feeling too, but dont change things on a running system
F
Favna419d ago
for example you dont even have a mono repo then why use mono repo config
N
Noxillio395d 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 discord.js@14.x.x (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
F
Favna395d 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.
N
Noxillio395d 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
More Posts
MonoreposDoes Sapphire work and play nice with monorepos?Question regarding slash commands / aliasesHi, is there a way for me to register command aliases as slash commands as well? For example: Commandisable commands by dashboard.I want to disable commands through dashboard so, is there any way to dynamically disable commands ?What is the difference between response.status and response.statusCode ?When using the API Plugin of Sapphire.Hey what is DEVELOPMENT MODE and how do I disable itI tried setting the Node_Env to something else but it did not change it in the consoleBotList Autopost of stats is not workingI am using the bot list plugin https://github.com/devtomio/sapphire-plugin-botlist I set everything Miss matching objects on permission setting.Typescript says that permissionOverwrites does not exits in GuildBasedChannel, even tho it exists, irequiredClientPermissions check always rejectingWhile `requiredUserPermissions: ['ManageRoles']` works great. The client check `requiredClientPermisUnable to get member data from users that have left / kickedHi, I am trying to get data from members who have left the discord server or have been kicked. But ICatch all chat input command errors listenerHello ! I tried using the `Events.ChatInputCommandError` listener to catch any errors thrown by the Multiple Clients on one file/instanceI was wondering if its possible to run multiple clients on one file (i.e. .forEach()-ing `new ClientHow to present Slashcommands?How can I present the Slashcommands of my bot in his About Me like for example carl.gg does?Interaction HandlersAm I required to specify to sapphire where my interaction handlers directory is? A `interaction-handbot won't get on and connect to discord.hi, my bot won't turn on. i've coded a lot of bots before with sapphire and they worked just fine, dHow Do I Make a Project in my current Directory?I want to make the proj in `workspaces/DashMate` not like `workspaces/DashMate/${ProjName}`Bot wont go onlinewhen I try to run the script `yarn dev` I get this problemGuildDelete Event somehow gets triggered when I restart my BotI have no idea whats happening but if my bot (docker container) restarts, this notification gets senTypeError: Class extends value undefined is not a constructor or nullHey, newbie here in both TypeScript and Sapphire, and I'm trying to build a command but I'm getting THREAD_CREATE event Listener run method argumentsWhat I want to do: I want to inspect the id of the parent channel where the thread was created. TheCommand info command issueI have a command info command, but when I try to get information on a command called "flags" it retu