Skip to content

Incorrect type. Expected "array". #3670

@ThePinkFAIRY

Description

@ThePinkFAIRY

Im getting a error inside of the package.json for discord.js saying "Incorrect type. Expected "array"." [66, 25] and in the terminal its saying "Incorrect login details were provided."

{
  "_from": "discord.js@^11.5.1",
  "_id": "discord.js@11.5.1",
  "_inBundle": false,
  "_integrity": "sha512-tGhV5xaZXE3Z+4uXJb3hYM6gQ1NmnSxp9PClcsSAYFVRzH6AJH74040mO3afPDMWEAlj8XsoPXXTJHTxesqcGw==",
  "_location": "/discord.js",
  "_phantomChildren": {},
  "_requested": {
    "type": "range",
    "registry": true,
    "raw": "discord.js@^11.5.1",
    "name": "discord.js",
    "escapedName": "discord.js",
    "rawSpec": "^11.5.1",
    "saveSpec": null,
    "fetchSpec": "^11.5.1"
  },
  "_requiredBy": [
    "#USER",
    "/"
  ],
  "_resolved": "https://registry.npmjs.org/discord.js/-/discord.js-11.5.1.tgz",
  "_shasum": "910fb9f6410328581093e044cafb661783a4d9e8",
  "_spec": "discord.js@^11.5.1",
  "_where": "C:\\Users\\Paul Starick\\Desktop\\discord bot",
  "author": {
    "name": "Amish Shah",
    "email": "amishshah.2k@gmail.com"
  },
  "browser": {
    "ws": false,
    "uws": false,
    "@discordjs/uws": false,
    "erlpack": false,
    "prism-media": false,
    "opusscript": false,
    "node-opus": false,
    "tweetnacl": false,
    "sodium": false,
    "src/sharding/Shard.js": false,
    "src/sharding/ShardClientUtil.js": false,
    "src/sharding/ShardingManager.js": false,
    "src/client/voice/dispatcher/StreamDispatcher.js": false,
    "src/client/voice/opus/BaseOpusEngine.js": false,
    "src/client/voice/opus/NodeOpusEngine.js": false,
    "src/client/voice/opus/OpusEngineList.js": false,
    "src/client/voice/opus/OpusScriptEngine.js": false,
    "src/client/voice/pcm/ConverterEngine.js": false,
    "src/client/voice/pcm/ConverterEngineList.js": false,
    "src/client/voice/pcm/FfmpegConverterEngine.js": false,
    "src/client/voice/player/AudioPlayer.js": false,
    "src/client/voice/receiver/VoiceReadable.js": false,
    "src/client/voice/receiver/VoiceReceiver.js": false,
    "src/client/voice/util/Secretbox.js": false,
    "src/client/voice/util/SecretKey.js": false,
    "src/client/voice/util/VolumeInterface.js": false,
    "src/client/voice/ClientVoiceManager.js": false,
    "src/client/voice/VoiceBroadcast.js": false,
    "src/client/voice/VoiceConnection.js": false,
    "src/client/voice/VoiceUDPClient.js": false,
    "src/client/voice/VoiceWebSocket.js": false
  },
  "bugs": {
    "url": "https://github.com/discordjs/discord.js/issues"
  },
  "bundleDependencies": false,
  "dependencies": {
    "long": "^4.0.0",
    "prism-media": "^0.0.3",
    "snekfetch": "^3.6.4",
    "tweetnacl": "^1.0.0",
    "ws": "^6.0.0"
  },
  "deprecated": false,
  "description": "A powerful library for interacting with the Discord API",
  "devDependencies": {
    "@types/node": "^9.4.6",
    "discord.js-docgen": "github:discordjs/docgen",
    "eslint": "^5.4.0",
    "parallel-webpack": "^2.3.0",
    "tslint": "^3.15.1",
    "tslint-config-typings": "^0.2.4",
    "typescript": "^3.0.1",
    "uglifyjs-webpack-plugin": "^1.3.0",
    "webpack": "^4.17.0"
  },
  "engines": {
    "node": ">=6.0.0"
  },
  "homepage": "https://github.com/discordjs/discord.js#readme",
  "keywords": [
    "discord",
    "api",
    "bot",
    "client",
    "node",
    "discordapp"
  ],
  "license": "Apache-2.0",
  "main": "./src/index",
  "name": "discord.js",
  "peerDependencies": {
    "bufferutil": "^4.0.0",
    "erlpack": "discordapp/erlpack",
    "libsodium-wrappers": "^0.7.3",
    "node-opus": "^0.2.7",
    "opusscript": "^0.0.6",
    "sodium": "^2.0.3",
    "@discordjs/uws": "^10.149.0"
  },
  "peerDependenciesMeta": {
    "bufferutil": {
      "optional": true
    },
    "erlpack": {
      "optional": true
    },
    "node-opus": {
      "optional": true
    },
    "opusscript": {
      "optional": true
    },
    "sodium": {
      "optional": true
    },
    "libsodium-wrappers": {
      "optional": true
    },
    "uws": {
      "optional": true
    }
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/discordjs/discord.js.git"
  },
  "runkitExampleFilename": "./docs/examples/ping.js",
  "scripts": {
    "docs": "docgen --source src --custom docs/index.yml --output docs/docs.json",
    "docs:test": "docgen --source src --custom docs/index.yml",
    "lint": "eslint src",
    "lint:fix": "eslint --fix src",
    "lint:typings": "tslint typings/index.d.ts typings/discord.js-test.ts",
    "test": "npm run lint && npm run docs:test",
    "webpack": "parallel-webpack"
  },
  "types": "./typings/index.d.ts",
  "version": "11.5.1"
}
  • discord.js version: 11.5.1
  • Node.js version: im not sure probably the latest or recommened one
  • Operating system: Windows

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions