Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'
any ideas?
11 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
i also dont have the SoundboardSound type for some reason
well as mentioned in #djs-help-v14, that was added to
discord-api-types
in 0.37.103
, therefore your version won't have it
what amgelo was probably missing is that the pr for unpinning discord-api-types
came after the latest stable version, so it'd still use 0.37.100
on a fresh install
you could manually override/resolve a discord-api-types
version in your package.json, or you can wait for the next release
as for soundboard sounds actually being supported in discord.js, the pr for that still has yet to be merged:pr_draft: #10590 in discordjs/discord.js by sdanialraza created <t:1730831500:R> (review required)
feat: add soundboard
so is my issue just my issue or did it happen to everyone else too?
everyone using the latest stable version
again, the issue is that what you're trying to use was implemented after the latest stable version
okay how do i use the appropriate types version?
in your package.json, add
do i need to do npm install after that?
sure
since you don't have it
ty, and how do i import SoundboardSound?
alright