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

16 messages · Page 1 of 1 (latest)

lament thorn
#
if(untypedLog.action !== AuditLogEvent.SoundboardSoundCreate) return; // Property 'SoundboardSoundCreate' does not exist on type 'typeof AuditLogEvent'.

any ideas?

void hamletBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • 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
lament thorn
lament thorn
#

i also dont have the SoundboardSound type for some reason

pallid pond
#

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

pallid pond
stable fableBOT
lament thorn
#

so is my issue just my issue or did it happen to everyone else too?

pallid pond
#

everyone using the latest stable version
again, the issue is that what you're trying to use was implemented after the latest stable version

lament thorn
#

okay how do i use the appropriate types version?

granite maple
#

in your package.json, add

"overrides": {
    "discord-api-types": "0.37.103"
}
lament thorn
granite maple
#

sure

#

since you don't have it

lament thorn
#

ty, and how do i import SoundboardSound?

next meadow