Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'

if(untypedLog.action !== AuditLogEvent.SoundboardSoundCreate) return; // Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'.
if(untypedLog.action !== AuditLogEvent.SoundboardSoundCreate) return; // Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'.
any ideas?
11 Replies
d.js toolkit
d.js toolkit4mo ago
- 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! - Marked as resolved by staff
jacob
jacobOP4mo ago
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
├─┬ @discordjs/[email protected]
│ └── [email protected]
i also dont have the SoundboardSound type for some reason
duck
duck4mo ago
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
GitHub
GitHub4mo ago
:pr_draft: #10590 in discordjs/discord.js by sdanialraza created <t:1730831500:R> (review required) feat: add soundboard
jacob
jacobOP4mo ago
so is my issue just my issue or did it happen to everyone else too?
duck
duck4mo ago
everyone using the latest stable version again, the issue is that what you're trying to use was implemented after the latest stable version
jacob
jacobOP4mo ago
okay how do i use the appropriate types version?
Amgelo
Amgelo4mo ago
in your package.json, add
"overrides": {
"discord-api-types": "0.37.103"
}
"overrides": {
"discord-api-types": "0.37.103"
}
jacob
jacobOP4mo ago
do i need to do npm install after that?
Amgelo
Amgelo4mo ago
sure since you don't have it
jacob
jacobOP4mo ago
ty, and how do i import SoundboardSound? alright

Did you find this page helpful?