#Interaction command getter is null

1 messages · Page 1 of 1 (latest)

compact skiff
keen trench
#

👋

#

Should I maybe try to cache all commands? (and if so, how exactly would I do that?)

compact skiff
#

commands.fetch() should do that, if you didn't overwrite the cache size

keen trench
#

client.commands I'm assuming

compact skiff
#

client.application.commands or guild.commands

#

client.commands is custom

keen trench
#

oh

compact skiff
#

did you overwrite the cache size?

keen trench
#

so client.application it is

keen trench
compact skiff
#

makeCache client option

keen trench
#

Nope

compact skiff
#

what's the (resolved) return value from interaction.guild.commands.fetch()?

keen trench
#

Not sure, i'll have to log it

#

Testing what happens if i cache all commands right now

#

well apparently caching that way worked because now after i run it once its gone

compact skiff
#

seems like it was a global command

keen trench
#

But there are commands I know for a fact werent global that seem to not get deleted

#

Like i've been logging invalid commands for months and ive seen tons of the old guild-specific commands appearing in logs from the same guild