Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

關於FLAGS的錯誤 #1

Open
Albttt opened this issue Jun 5, 2024 · 1 comment
Open

關於FLAGS的錯誤 #1

Albttt opened this issue Jun 5, 2024 · 1 comment

Comments

@Albttt
Copy link

Albttt commented Jun 5, 2024

我在運行node src/index.js出現以下錯誤
const nuker = new Client({ intents: Object.values(Intents.FLAGS).reduce((a, b) => a + b) });
^

TypeError: Cannot read properties of undefined (reading 'FLAGS')
at Object. (C:\Users\user\Downloads\Best-Nuke-Bot-main\Best-Nuke-Bot-main\src\index.js:6:59)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
at node:internal/main/run_main_module:28:49
請問這是哪裡出問題?

@Tira-tw Tira-tw added bug Something isn't working and removed bug Something isn't working labels Jun 22, 2024
@Tira-tw
Copy link
Owner

Tira-tw commented Jun 22, 2024

我在運行node src/index.js出現以下錯誤 const nuker = new Client({ intents: Object.values(Intents.FLAGS).reduce((a, b) => a + b) }); ^

TypeError: Cannot read properties of undefined (reading 'FLAGS') at Object. (C:\Users\user\Downloads\Best-Nuke-Bot-main\Best-Nuke-Bot-main\src\index.js:6:59) at Module._compile (node:internal/modules/cjs/loader:1358:14) at Module._extensions..js (node:internal/modules/cjs/loader:1416:10) at Module.load (node:internal/modules/cjs/loader:1208:32) at Module._load (node:internal/modules/cjs/loader:1024:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) at node:internal/main/run_main_module:28:49 請問這是哪裡出問題?

image

試著重新安裝node.js/npm install/重新下載檔案
我測試是沒問題的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants