Androz2091 / discord-music-bot

The perfect music bot for your Discord server! 🤘
238 stars 128 forks source link

response: { message: 'You are not authorized to perform this action on this application', code: 20012 }, code: 403 #41

Closed KC080 closed 2 years ago

KC080 commented 2 years ago

after forking the latest release and then hosting the bot on repl.it, there's a new error. it seems to be affecting every music bot i create (including other music bots that i made besides this) give the same error message.

_securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: false, _SNICallback: null, servername: 'discord.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype] { close: [ [Function: onSocketCloseDestroySSL], [Function: onClose], [Function: socketCloseListener] ], end: [Function: onReadableStreamEnd], newListener: [Function: keylogNewListener], secure: [Function: onConnectSecure], session: [Function (anonymous)], free: [Function: onFree], timeout: [Function: onTimeout], agentRemove: [Function: onRemove], error: [Function: socketErrorListener] }, _eventsCount: 9, connecting: false, _hadError: false, _parent: null, _host: 'discord.com', _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: [], flowing: true, ended: true, endEmitted: true, reading: false, constructed: true, sync: false, needReadable: false, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: false, autoDestroy: true, destroyed: true, errored: null, closed: true, closeEmitted: true, defaultEncoding: 'utf8', awaitDrainWriters: null, multiAwaitDrain: false, readingMore: false, dataEmitted: true, decoder: null, encoding: null,

  },
  _maxListeners: undefined,
  _writableState: WritableState {
    objectMode: false,
    highWaterMark: 16384,
    finalCalled: true,
    needDrain: false,
    ending: true,
    ended: true,
    finished: true,
    destroyed: true,
    decodeStrings: false,
    defaultEncoding: 'utf8',
    length: 0,
    writing: false,
    corked: 0,
    sync: false,
    bufferProcessing: false,
    onwrite: [Function: bound onwrite],
    writecb: null,
    writelen: 0,
    afterWriteTickInfo: null,
    buffered: [],
    bufferedIndex: 0,
    allBuffers: true,
    allNoop: true,
    pendingcb: 0,
    constructed: true,
    prefinished: true,
    errorEmitted: false,
    emitClose: false,
    autoDestroy: true,
    errored: null,
    closed: true,
    closeEmitted: true,
    [Symbol(kOnFinished)]: []
  },
  allowHalfOpen: false,
  _sockname: null,
  _pendingData: null,
  _pendingEncoding: '',
  server: undefined,
  _server: null,
  ssl: null,
  _requestCert: true,
  _rejectUnauthorized: true,
  parser: null,
  _httpMessage: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      abort: [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      error: [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      socket: [Function (anonymous)],
      timeout: [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 5,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    _closed: true,
    socket: [Circular *2],
    _header: 'GET /api/v8/applications/887350900606267483/guilds/827565599609061387/commands HTTP/1.1\r\n' +
      'User-Agent: DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)\r\n' +
      'Accept-Encoding: gzip,deflate\r\n' +
      'X-RateLimit-Precision: millisecond\r\n' +
      'Authorization: Bot (token here)\r\n' +
      'Host: discord.com\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: nop],
    agent: Agent {
      _events: [Object: null prototype] {
        free: [Function (anonymous)],
        newListener: [Function: maybeEnableKeylog]
      },
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype] { path: null },
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {
        'soundcloud.com:443:::::::::::::::::::::': [Array]
      },
      freeSockets: [Object: null prototype] {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: { map: [Object], list: [Array] },
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'GET',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/api/v8/applications/887350900606267483/guilds/827565599609061387/commands',
    _ended: true,
    res: [Circular *3],
    aborted: false,
    timeoutCb: [Function: emitRequestTimeout],
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'discord.com',
    protocol: 'https:',
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      'user-agent': [
        'User-Agent',
        'DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)'
      ],
      'accept-encoding': [ 'Accept-Encoding', 'gzip,deflate' ],
      'x-ratelimit-precision': [ 'X-RateLimit-Precision', 'millisecond' ],
      authorization: [
        'Authorization',
        'Bot (token here)'
      ],
      host: [ 'Host', 'discord.com' ]
    }
  },
  timeout: 15000,
  write: [Function: writeAfterFIN],
  [Symbol(res)]: null,
  [Symbol(verified)]: true,
  [Symbol(pendingSession)]: null,
  [Symbol(async_id_symbol)]: 14,
  [Symbol(kHandle)]: null,
  [Symbol(kSetNoDelay)]: false,
  [Symbol(lastWriteQueueSize)]: 0,
  [Symbol(timeout)]: Timeout {
    _idleTimeout: -1,
    _idlePrev: null,
    _idleNext: null,
    _idleStart: 2694,
    _onTimeout: null,
    _timerArgs: undefined,
    _repeat: null,
    _destroyed: true,
    [Symbol(refed)]: false,
    [Symbol(kHasPrimitive)]: false,
    [Symbol(asyncId)]: 33,
    [Symbol(triggerId)]: 31
  },
  [Symbol(kBuffer)]: null,
  [Symbol(kBufferCb)]: null,
  [Symbol(kBufferGen)]: null,
  [Symbol(kCapture)]: false,
  [Symbol(kBytesRead)]: 1387,
  [Symbol(kBytesWritten)]: 349,
  [Symbol(connect-options)]: {
    rejectUnauthorized: true,
    ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
    checkServerIdentity: [Function: checkServerIdentity],
    minDHSize: 1024,
    method: 'GET',
    host: 'discord.com',
    path: null,
    headers: {
      'User-Agent': 'DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)',
      'Accept-Encoding': 'gzip,deflate',
      'X-RateLimit-Precision': 'millisecond',
      Authorization: 'Bot (token here)'
    },
    agent: null,
    _defaultAgent: Agent {
      _events: [Object: null prototype] {
        free: [Function (anonymous)],
        newListener: [Function: maybeEnableKeylog]
      },
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype] { path: null },
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {
        'soundcloud.com:443:::::::::::::::::::::': [Array]
      },
      freeSockets: [Object: null prototype] {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: { map: [Object], list: [Array] },
      [Symbol(kCapture)]: false
    },
    port: 443,
    servername: 'discord.com',
    _agentKey: 'discord.com:443:::::::::::::::::::::',
    encoding: null,
    singleUse: true
  },
  [Symbol(RequestTimeout)]: undefined
},
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [
  'Date',
  'Fri, 17 Sep 2021 11:44:53 GMT',
  'Content-Type',
  'application/json',
  'Transfer-Encoding',
  'chunked',
  'Connection',
  'close',
  'set-cookie',
  '__dcfduid=ab83e84117ac11ecbd1e42010a0a06c1; Expires=Wed, 16-Sep-2026 11:44:52 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/',
  'set-cookie',
  '__sdcfduid=ab83e84117ac11ecbd1e42010a0a06c134be33315226be2291a401f3fed1619d3d6e922d567ff886834d281ea65d842b; Expires=Wed, 16-Sep-2026 11:44:52 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/',
  'strict-transport-security',
  'max-age=31536000; includeSubDomains; preload',
  'x-envoy-upstream-service-time',
  '30',
  'Via',
  '1.1 google',
  'Alt-Svc',
  'h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400',
  'CF-Cache-Status',
  'DYNAMIC',
  'Expect-CT',
  'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
  'Report-To',
  '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=T7wUQViX5L%2F3QsXECTqx8WDriGbf%2BLAVg9ZBwqkAO6ik%2BCE3MV1A5bKeCcDywbYKq9%2FKBSEMxpZvG0TvCKJ6GNvCgu4bLJc%2BbJ9959UgsXiHHn5YQ8w04teR%2B0Td"}],"group":"cf-nel","max_age":604800}',
  'NEL',
  '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
  'X-Content-Type-Options',
  'nosniff',
  'Server',
  'cloudflare',
  'CF-RAY',
  '690215cac8b8e38e-SEA',
  'Content-Encoding',
  'gzip'
],
rawTrailers: [],
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 403,
statusMessage: 'Forbidden',
client: <ref *2> TLSSocket {
  _tlsOptions: {
    allowHalfOpen: undefined,
    pipe: false,
    secureContext: SecureContext { context: SecureContext {} },
    isServer: false,
    requestCert: true,
    rejectUnauthorized: true,
    session: undefined,
    ALPNProtocols: undefined,
    requestOCSP: undefined,
    enableTrace: undefined,
    pskCallback: undefined,
    highWaterMark: undefined,
    onread: undefined,
    signal: undefined
  },
  _secureEstablished: true,
  _securePending: false,
  _newSessionPending: false,
  _controlReleased: true,
  secureConnecting: false,
  _SNICallback: null,
  servername: 'discord.com',
  alpnProtocol: false,
  authorized: true,
  authorizationError: null,
  encrypted: true,
  _events: [Object: null prototype] {
    close: [
      [Function: onSocketCloseDestroySSL],
      [Function: onClose],
      [Function: socketCloseListener]
    ],
    end: [Function: onReadableStreamEnd],
    newListener: [Function: keylogNewListener],
    secure: [Function: onConnectSecure],
    session: [Function (anonymous)],
    free: [Function: onFree],
    timeout: [Function: onTimeout],
    agentRemove: [Function: onRemove],
    error: [Function: socketErrorListener]
  },
  _eventsCount: 9,
  connecting: false,
  _hadError: false,
  _parent: null,
  _host: 'discord.com',
  _readableState: ReadableState {
    objectMode: false,
    highWaterMark: 16384,
    buffer: BufferList { head: null, tail: null, length: 0 },
    length: 0,
    pipes: [],
    flowing: true,
    ended: true,
    endEmitted: true,
    reading: false,
    constructed: true,
    sync: false,
    needReadable: false,
    emittedReadable: false,
    readableListening: false,
    resumeScheduled: false,
    errorEmitted: false,
    emitClose: false,
    autoDestroy: true,
    destroyed: true,
    errored: null,
    closed: true,
    closeEmitted: true,
    defaultEncoding: 'utf8',
    awaitDrainWriters: null,
    multiAwaitDrain: false,
    readingMore: false,
    dataEmitted: true,
    decoder: null,
    encoding: null,
    [Symbol(kPaused)]: false
  },
  _maxListeners: undefined,
  _writableState: WritableState {
    objectMode: false,
    highWaterMark: 16384,
    finalCalled: true,
    needDrain: false,
    ending: true,
    ended: true,
    finished: true,
    destroyed: true,
    decodeStrings: false,
    defaultEncoding: 'utf8',
    length: 0,
    writing: false,
    corked: 0,
    sync: false,
    bufferProcessing: false,
    onwrite: [Function: bound onwrite],
    writecb: null,
    writelen: 0,
    afterWriteTickInfo: null,
    buffered: [],
    bufferedIndex: 0,
    allBuffers: true,
    allNoop: true,
    pendingcb: 0,
    constructed: true,
    prefinished: true,
    errorEmitted: false,
    emitClose: false,
    autoDestroy: true,
    errored: null,
    closed: true,
    closeEmitted: true,
    [Symbol(kOnFinished)]: []
  },
  allowHalfOpen: false,
  _sockname: null,
  _pendingData: null,
  _pendingEncoding: '',
  server: undefined,
  _server: null,
  ssl: null,
  _requestCert: true,
  _rejectUnauthorized: true,
  parser: null,
  _httpMessage: <ref *1> ClientRequest {
    _events: [Object: null prototype] {
      abort: [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      error: [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      socket: [Function (anonymous)],
      timeout: [Function: bound onceWrapper] {
        listener: [Function (anonymous)]
      },
      prefinish: [Function: requestOnPrefinish]
    },
    _eventsCount: 5,
    _maxListeners: undefined,
    outputData: [],
    outputSize: 0,
    writable: true,
    destroyed: true,
    _last: true,
    chunkedEncoding: false,
    shouldKeepAlive: false,
    _defaultKeepAlive: true,
    useChunkedEncodingByDefault: false,
    sendDate: false,
    _removedConnection: false,
    _removedContLen: false,
    _removedTE: false,
    _contentLength: 0,
    _hasBody: true,
    _trailer: '',
    finished: true,
    _headerSent: true,
    _closed: true,
    socket: [Circular *2],
    _header: 'GET /api/v8/applications/887350900606267483/guilds/827565599609061387/commands HTTP/1.1\r\n' +
      'User-Agent: DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)\r\n' +
      'Accept-Encoding: gzip,deflate\r\n' +
      'X-RateLimit-Precision: millisecond\r\n' +
      'Authorization: Bot (token here)\r\n' +
      'Host: discord.com\r\n' +
      'Connection: close\r\n' +
      '\r\n',
    _keepAliveTimeout: 0,
    _onPendingData: [Function: nop],
    agent: Agent {
      _events: [Object: null prototype] {
        free: [Function (anonymous)],
        newListener: [Function: maybeEnableKeylog]
      },
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype] { path: null },
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {
        'soundcloud.com:443:::::::::::::::::::::': [Array]
      },
      freeSockets: [Object: null prototype] {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: { map: [Object], list: [Array] },
      [Symbol(kCapture)]: false
    },
    socketPath: undefined,
    method: 'GET',
    maxHeaderSize: undefined,
    insecureHTTPParser: undefined,
    path: '/api/v8/applications/887350900606267483/guilds/827565599609061387/commands',
    _ended: true,
    res: [Circular *3],
    aborted: false,
    timeoutCb: [Function: emitRequestTimeout],
    upgradeOrConnect: false,
    parser: null,
    maxHeadersCount: null,
    reusedSocket: false,
    host: 'discord.com',
    protocol: 'https:',
    [Symbol(kCapture)]: false,
    [Symbol(kNeedDrain)]: false,
    [Symbol(corked)]: 0,
    [Symbol(kOutHeaders)]: [Object: null prototype] {
      'user-agent': [
        'User-Agent',
        'DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)'
      ],
      'accept-encoding': [ 'Accept-Encoding', 'gzip,deflate' ],
      'x-ratelimit-precision': [ 'X-RateLimit-Precision', 'millisecond' ],
      authorization: [
        'Authorization',
        'Bot (token here)'
      ],
      host: [ 'Host', 'discord.com' ]
    }
  },
  timeout: 15000,
  write: [Function: writeAfterFIN],
  [Symbol(res)]: null,
  [Symbol(verified)]: true,
  [Symbol(pendingSession)]: null,
  [Symbol(async_id_symbol)]: 14,
  [Symbol(kHandle)]: null,
  [Symbol(kSetNoDelay)]: false,
  [Symbol(lastWriteQueueSize)]: 0,
  [Symbol(timeout)]: Timeout {
    _idleTimeout: -1,
    _idlePrev: null,
    _idleNext: null,
    _idleStart: 2694,
    _onTimeout: null,
    _timerArgs: undefined,
    _repeat: null,
    _destroyed: true,
    [Symbol(refed)]: false,
    [Symbol(kHasPrimitive)]: false,
    [Symbol(asyncId)]: 33,
    [Symbol(triggerId)]: 31
  },
  [Symbol(kBuffer)]: null,
  [Symbol(kBufferCb)]: null,
  [Symbol(kBufferGen)]: null,
  [Symbol(kCapture)]: false,
  [Symbol(kBytesRead)]: 1387,
  [Symbol(kBytesWritten)]: 349,
  [Symbol(connect-options)]: {
    rejectUnauthorized: true,
    ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
    checkServerIdentity: [Function: checkServerIdentity],
    minDHSize: 1024,
    method: 'GET',
    host: 'discord.com',
    path: null,
    headers: {
      'User-Agent': 'DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)',
      'Accept-Encoding': 'gzip,deflate',
      'X-RateLimit-Precision': 'millisecond',
      Authorization: 'Bot (token here)'
    },
    agent: null,
    _defaultAgent: Agent {
      _events: [Object: null prototype] {
        free: [Function (anonymous)],
        newListener: [Function: maybeEnableKeylog]
      },
      _eventsCount: 2,
      _maxListeners: undefined,
      defaultPort: 443,
      protocol: 'https:',
      options: [Object: null prototype] { path: null },
      requests: [Object: null prototype] {},
      sockets: [Object: null prototype] {
        'soundcloud.com:443:::::::::::::::::::::': [Array]
      },
      freeSockets: [Object: null prototype] {},
      keepAliveMsecs: 1000,
      keepAlive: false,
      maxSockets: Infinity,
      maxFreeSockets: 256,
      scheduling: 'lifo',
      maxTotalSockets: Infinity,
      totalSocketCount: 1,
      maxCachedSessions: 100,
      _sessionCache: { map: [Object], list: [Array] },
      [Symbol(kCapture)]: false
    },
    port: 443,
    servername: 'discord.com',
    _agentKey: 'discord.com:443:::::::::::::::::::::',
    encoding: null,
    singleUse: true
  },
  [Symbol(RequestTimeout)]: undefined
},
_consuming: true,
_dumped: false,
req: <ref *1> ClientRequest {
  _events: [Object: null prototype] {
    abort: [Function: bound onceWrapper] {
      listener: [Function (anonymous)]
    },
    error: [Function: bound onceWrapper] {
      listener: [Function (anonymous)]
    },
    socket: [Function (anonymous)],
    timeout: [Function: bound onceWrapper] {
      listener: [Function (anonymous)]
    },
    prefinish: [Function: requestOnPrefinish]
  },
  _eventsCount: 5,
  _maxListeners: undefined,
  outputData: [],
  outputSize: 0,
  writable: true,
  destroyed: true,
  _last: true,
  chunkedEncoding: false,
  shouldKeepAlive: false,
  _defaultKeepAlive: true,
  useChunkedEncodingByDefault: false,
  sendDate: false,
  _removedConnection: false,
  _removedContLen: false,
  _removedTE: false,
  _contentLength: 0,
  _hasBody: true,
  _trailer: '',
  finished: true,
  _headerSent: true,
  _closed: true,
  socket: <ref *2> TLSSocket {
    _tlsOptions: {
      allowHalfOpen: undefined,
      pipe: false,
      secureContext: SecureContext { context: SecureContext {} },
      isServer: false,
      requestCert: true,
      rejectUnauthorized: true,
      session: undefined,
      ALPNProtocols: undefined,
      requestOCSP: undefined,
      enableTrace: undefined,
      pskCallback: undefined,
      highWaterMark: undefined,
      onread: undefined,
      signal: undefined
    },
    _secureEstablished: true,
    _securePending: false,
    _newSessionPending: false,
    _controlReleased: true,
    secureConnecting: false,
    _SNICallback: null,
    servername: 'discord.com',
    alpnProtocol: false,
    authorized: true,
    authorizationError: null,
    encrypted: true,
    _events: [Object: null prototype] {
      close: [
        [Function: onSocketCloseDestroySSL],
        [Function: onClose],
        [Function: socketCloseListener]
      ],
      end: [Function: onReadableStreamEnd],
      newListener: [Function: keylogNewListener],
      secure: [Function: onConnectSecure],
      session: [Function (anonymous)],
      free: [Function: onFree],
      timeout: [Function: onTimeout],
      agentRemove: [Function: onRemove],
      error: [Function: socketErrorListener]
    },
    _eventsCount: 9,
    connecting: false,
    _hadError: false,
    _parent: null,
    _host: 'discord.com',
    _readableState: ReadableState {
      objectMode: false,
      highWaterMark: 16384,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: [],
      flowing: true,
      ended: true,
      endEmitted: true,
      reading: false,
      constructed: true,
      sync: false,
      needReadable: false,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: false,
      errorEmitted: false,
      emitClose: false,
      autoDestroy: true,
      destroyed: true,
      errored: null,
      closed: true,
      closeEmitted: true,
      defaultEncoding: 'utf8',
      awaitDrainWriters: null,
      multiAwaitDrain: false,
      readingMore: false,
      dataEmitted: true,
      decoder: null,
      encoding: null,
      [Symbol(kPaused)]: false
    },
    _maxListeners: undefined,
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: true,
      needDrain: false,
      ending: true,
      ended: true,
      finished: true,
      destroyed: true,
      decodeStrings: false,
      defaultEncoding: 'utf8',
      length: 0,
      writing: false,
      corked: 0,
      sync: false,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: null,
      writelen: 0,
      afterWriteTickInfo: null,
      buffered: [],
      bufferedIndex: 0,
      allBuffers: true,
      allNoop: true,
      pendingcb: 0,
      constructed: true,
      prefinished: true,
      errorEmitted: false,
      emitClose: false,
      autoDestroy: true,
      errored: null,
      closed: true,
      closeEmitted: true,
      [Symbol(kOnFinished)]: []
    },
    allowHalfOpen: false,
    _sockname: null,
    _pendingData: null,
    _pendingEncoding: '',
    server: undefined,
    _server: null,
    ssl: null,
    _requestCert: true,
    _rejectUnauthorized: true,
    parser: null,
    _httpMessage: [Circular *1],
    timeout: 15000,
    write: [Function: writeAfterFIN],
    [Symbol(res)]: null,
    [Symbol(verified)]: true,
    [Symbol(pendingSession)]: null,
    [Symbol(async_id_symbol)]: 14,
    [Symbol(kHandle)]: null,
    [Symbol(kSetNoDelay)]: false,
    [Symbol(lastWriteQueueSize)]: 0,
    [Symbol(timeout)]: Timeout {
      _idleTimeout: -1,
      _idlePrev: null,
      _idleNext: null,
      _idleStart: 2694,
      _onTimeout: null,
      _timerArgs: undefined,
      _repeat: null,
      _destroyed: true,
      [Symbol(refed)]: false,
      [Symbol(kHasPrimitive)]: false,
      [Symbol(asyncId)]: 33,
      [Symbol(triggerId)]: 31
    },
    [Symbol(kBuffer)]: null,
    [Symbol(kBufferCb)]: null,
    [Symbol(kBufferGen)]: null,
    [Symbol(kCapture)]: false,
    [Symbol(kBytesRead)]: 1387,
    [Symbol(kBytesWritten)]: 349,
    [Symbol(connect-options)]: {
      rejectUnauthorized: true,
      ciphers: 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:DHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA256:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!SRP:!CAMELLIA',
      checkServerIdentity: [Function: checkServerIdentity],
      minDHSize: 1024,
      method: 'GET',
      host: 'discord.com',
      path: null,
      headers: {
        'User-Agent': 'DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)',
        'Accept-Encoding': 'gzip,deflate',
        'X-RateLimit-Precision': 'millisecond',
        Authorization: 'Bot (token here)'
      },
      agent: null,
      _defaultAgent: Agent {
        _events: [Object: null prototype],
        _eventsCount: 2,
        _maxListeners: undefined,
        defaultPort: 443,
        protocol: 'https:',
        options: [Object: null prototype],
        requests: [Object: null prototype] {},
        sockets: [Object: null prototype],
        freeSockets: [Object: null prototype] {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: 256,
        scheduling: 'lifo',
        maxTotalSockets: Infinity,
        totalSocketCount: 1,
        maxCachedSessions: 100,
        _sessionCache: [Object],
        [Symbol(kCapture)]: false
      },
      port: 443,
      servername: 'discord.com',
      _agentKey: 'discord.com:443:::::::::::::::::::::',
      encoding: null,
      singleUse: true
    },
    [Symbol(RequestTimeout)]: undefined
  },
  _header: 'GET /api/v8/applications/887350900606267483/guilds/827565599609061387/commands HTTP/1.1\r\n' +
    'User-Agent: DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)\r\n' +
    'Accept-Encoding: gzip,deflate\r\n' +
    'X-RateLimit-Precision: millisecond\r\n' +
    'Authorization: Bot (token here)\r\n' +
    'Host: discord.com\r\n' +
    'Connection: close\r\n' +
    '\r\n',
  _keepAliveTimeout: 0,
  _onPendingData: [Function: nop],
  agent: Agent {
    _events: [Object: null prototype] {
      free: [Function (anonymous)],
      newListener: [Function: maybeEnableKeylog]
    },
    _eventsCount: 2,
    _maxListeners: undefined,
    defaultPort: 443,
    protocol: 'https:',
    options: [Object: null prototype] { path: null },
    requests: [Object: null prototype] {},
    sockets: [Object: null prototype] {
      'soundcloud.com:443:::::::::::::::::::::': [ [TLSSocket] ]
    },
    freeSockets: [Object: null prototype] {},
    keepAliveMsecs: 1000,
    keepAlive: false,
    maxSockets: Infinity,
    maxFreeSockets: 256,
    scheduling: 'lifo',
    maxTotalSockets: Infinity,
    totalSocketCount: 1,
    maxCachedSessions: 100,
    _sessionCache: {
      map: {
        'discord.com:443:::::::::::::::::::::': [Buffer [Uint8Array]]
      },
      list: [ 'discord.com:443:::::::::::::::::::::' ]
    },
    [Symbol(kCapture)]: false
  },
  socketPath: undefined,
  method: 'GET',
  maxHeaderSize: undefined,
  insecureHTTPParser: undefined,
  path: '/api/v8/applications/887350900606267483/guilds/827565599609061387/commands',
  _ended: true,
  res: [Circular *3],
  aborted: false,
  timeoutCb: [Function: emitRequestTimeout],
  upgradeOrConnect: false,
  parser: null,
  maxHeadersCount: null,
  reusedSocket: false,
  host: 'discord.com',
  protocol: 'https:',
  [Symbol(kCapture)]: false,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype] {
    'user-agent': [
      'User-Agent',
      'DiscordBot (https://github.com/Snazzah/slash-create, 4.0.1)'
    ],
    'accept-encoding': [ 'Accept-Encoding', 'gzip,deflate' ],
    'x-ratelimit-precision': [ 'X-RateLimit-Precision', 'millisecond' ],
    authorization: [
      'Authorization',
      'Bot (token here)'
    ],
    host: [ 'Host', 'discord.com' ]
  }
},
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: {
  date: 'Fri, 17 Sep 2021 11:44:53 GMT',
  'content-type': 'application/json',
  'transfer-encoding': 'chunked',
  connection: 'close',
  'set-cookie': [
    '__dcfduid=ab83e84117ac11ecbd1e42010a0a06c1; Expires=Wed, 16-Sep-2026 11:44:52 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/',
    '__sdcfduid=ab83e84117ac11ecbd1e42010a0a06c134be33315226be2291a401f3fed1619d3d6e922d567ff886834d281ea65d842b; Expires=Wed, 16-Sep-2026 11:44:52 GMT; Max-Age=157680000; Secure; HttpOnly; Path=/'
  ],
  'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
  'x-envoy-upstream-service-time': '30',
  via: '1.1 google',
  'alt-svc': 'h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400',
  'cf-cache-status': 'DYNAMIC',
  'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
  'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=T7wUQViX5L%2F3QsXECTqx8WDriGbf%2BLAVg9ZBwqkAO6ik%2BCE3MV1A5bKeCcDywbYKq9%2FKBSEMxpZvG0TvCKJ6GNvCgu4bLJc%2BbJ9959UgsXiHHn5YQ8w04teR%2B0Td"}],"group":"cf-nel","max_age":604800}',
  nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
  'x-content-type-options': 'nosniff',
  server: 'cloudflare',
  'cf-ray': '690215cac8b8e38e-SEA',
  'content-encoding': 'gzip'
},
[Symbol(kHeadersCount)]: 36,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0,
[Symbol(RequestTimeout)]: undefined

}, response: { message: 'You are not authorized to perform this action on this application', code: 20012 }, code: 403 }

image

nickisnoobatcode commented 2 years ago

You need the applications.commands scope

KC080 commented 2 years ago

You need the applications.commands scope

i kicked the bot then added it again with the applications.command and it still gave me the same error. also, the error for applications.command is different