#setDMPermission is not a function
15 messages · Page 1 of 1 (latest)
I think I might have figured it out, can the .setDMPermission function not be applied to subcommands?
yes, much like other slash command permissions, dm permission can only be applied to top level commands
setDMPermission is not a function.
+-- @discordjs/[email protected]
+-- @discordjs/[email protected]
full error log:
TypeError: (intermediate value).setName(...).setDescription(...).setDMPermission is not a function
do i have to update my /builders?
yes this is an issue with your outdated version of builders
consider using the version that comes with djs, and if you are, then update djs
oh ok
my djs is already updated
so i have to just manually update builders i guess
so its +-- @discordjs/[email protected] now
or just don't manually install builders, as discord.js has builders as a dependency