SIA
Sapphire - Imagine a frameworkTirupati[E3S1PRO]
'"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:
K
Krish•419d 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
Spinel•419d ago
S
Spinel•419d ago
F
Favna•419d ago
First of all, it's WebhookMessageEditOptions
Secondly, this is why you always first update your dependencies.
C
chillihero•419d 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
chillihero•419d ago
this does nothing
my dependencies:
F
Favna•419d ago
dedupe your dependencies
and update discordjs
C
chillihero•419d ago
dedupe?
F
Favna•419d 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
Favna•419d ago
same as deduping but chilli should first update their deps
C
chillihero•419d ago
upgrading djs fixed it
F
Favna•419d ago
now start keeping all your deps up-to-date
C
chillihero•419d ago
thats why i have renovate installed for exactly this
https://github.com/BirthdayyBot/BirthdayyBotSapphire/blob/develop/renovate.json
F
Favna•419d 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
chillihero•419d ago
i have that feeling too, but dont change things on a running system
F
Favna•419d ago
for example you dont even have a mono repo
then why use mono repo config
N
Noxillio•395d 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 lolF
Favna•395d 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
Noxillio•395d ago
I will try this next time. It didn't seem like
npm update
did anything
Thank youWelcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.2KMembers
View on DiscordWant results from more Discord servers?
More PostsMonoreposDoes 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