Simpleboy353 / REAPER-2.0

A multi-purpose discord bot made using Discord.js V14. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!
GNU General Public License v3.0
329 stars 225 forks source link

Issue with index.js #141

Closed DaGrateBot closed 2 years ago

DaGrateBot commented 2 years ago
Uncaught Exception: TypeError: Cannot read properties of undefined (reading 'send')
*line 80 of index.js*
  client.channels.cache.get(ERROR_LOGS_CHANNEL).send({ embeds: [exceptionembed] })
                                               ^

TypeError: Cannot read properties of undefined (reading 'send')
      at process.<anonymous>

and


[FATAL] Possibly Unhandled Rejection at: Promise  Promise {
  <rejected> TypeError: chalk.bgBlueBright is not a function
      at *path here*
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
}  reason:  chalk.bgBlueBright is not a function
brahmendra79 commented 2 years ago

Uncaught Exception: TypeError: Cannot read properties of undefined (reading 'send') line 80 of index.js client.channels.cache.get(ERROR_LOGS_CHANNEL).send({ embeds: [exceptionembed] })

(Edit Code Like This) > ({ embeds: [exceptionembed] }) => (exceptionembed)

davlix commented 2 years ago
$ node index .-----------------------------. Commands Load Status
awkword.js ✔️
betrayal.js ✔️
chess.js ✔️
doodlecrew.js ✔️
fishington.js ✔️
lettertile.js ✔️
poker.js ✔️
spellcast.js ✔️
youtube.js ✔️

'-----------------------------' node:internal/modules/cjs/loader:361 throw err; ^

Error: Cannot find module 'C:\Users\User\Documents\dc bot\Yana\REAPER-2.0\node_m odules\bluebird\js\release\bluebird.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:353:19) at Function.Module._findPath (node:internal/modules/cjs/loader:566:18) 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:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object. (C:\Users\User\Documents\dc bot\Yana\REAPER-2.0\node_m odules\mquery\lib\mquery.js:3248:17) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) { code: 'MODULE_NOT_FOUND', path: 'C:\Users\User\Documents\dc bot\Yana\REAPER-2.0\node_modules\blu ebird\package.json', requestPath: 'bluebird'

Simpleboy353 commented 2 years ago

try installing the module bluebird