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 toolkit2mo 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
ethan<333
ethan<333OP2mo 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
duck2mo 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
GitHub2mo ago
:pr_draft: #10590 in discordjs/discord.js by sdanialraza created <t:1730831500:R> (review required) feat: add soundboard
ethan<333
ethan<333OP2mo ago
so is my issue just my issue or did it happen to everyone else too?
duck
duck2mo 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
ethan<333
ethan<333OP2mo ago
okay how do i use the appropriate types version?
Amgelo
Amgelo2mo ago
in your package.json, add
"overrides": {
"discord-api-types": "0.37.103"
}
"overrides": {
"discord-api-types": "0.37.103"
}
ethan<333
ethan<333OP2mo ago
do i need to do npm install after that?
Amgelo
Amgelo2mo ago
sure since you don't have it
ethan<333
ethan<333OP2mo ago
ty, and how do i import SoundboardSound? alright
Want results from more Discord servers?
Add your server