Hi, I was making a command that I wanted to only be usable by those with admin permissions, and I set the permissions on the slash command builder.
I tried to change the discord api version my bot used to V10 so I could do it too, but after updating the discord-api-types npm module several times, it doesnt download the v10 files, nor the updated package.json that references it, causing this error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './v10' is not defined by "exports" in D:\Git Repos\source\repos\ShirouBot\node_modules\discord-api-types\package.json
at new NodeError (node:internal/errors:371:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:429:9)
at packageExportsResolve (node:internal/modules/esm/resolve:683:3)
at resolveExports (node:internal/modules/cjs/loader:482:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:999:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (D:\Git Repos\source\repos\ShirouBot\deploy.js:3:20) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
Sorry for bothering you guys, and thank you in advance for your help.