aoijs / aoi.js

aoi.js - The most advanced string-based package to create a Discord Bot fast and powerful.
https://aoi.js.org
Apache License 2.0
342 stars 134 forks source link

Bug: Cannot use no intents, error shown #529

Closed Yuma246 closed 10 months ago

Yuma246 commented 10 months ago

Bug Type

Callback

Bugged Function

/home/container/node_modules/aoi.js/src/class es/AoiBase.js:37 options.intents =options.intents.map((x) => IntentOptions[x] || x); TypeError: Cannot read properties of undefine d (reading 'map') at new BaseClient (/home/container/node_m odules/aoi.js/src/classes/AoiBase.js:37:39 at new Client (/home/container/node_modul es/aoi.js/src/classes/AoiClient.js:13:9) at Object.<anonymous> (/home/container/in dex.js:7:13 at Module._compile (node:internal/modules /cjs/loader:1376:14) at Module. extensions..js (node:internal/ modules/cjs/loader:1435:10) at Module.load (node:internal/modules/cjs /loader:1207:32) at Module._load (node:internal/modules/cj s/loader:1023:12) at Function.executeUserEntryPoint [as run

Version of aoi.js

v6.6.1

Version of Node.js

v20.10.0 (LTS)

Excepted Output

No response

Relevant log output

No response

Code of Conduct

USERSATOSHI commented 10 months ago

@Yuma246 what did u provide intents as?

Leref commented 10 months ago

Seem to be using all intents, which doesn't exist.

USERSATOSHI commented 10 months ago

Seem to be using all intents, which doesn't exist.

Actually it seems that he isnt using any intents and aoijs needs at least one in array this has been discussed and resolved at discord support so we can close this issue

Leref commented 10 months ago

Yeah, just noticed I fixed this.