thread.members._add is not a function

[UnhandledPromise] TypeError: thread.members._add is not a functionPromise {
  <rejected> TypeError: thread.members._add is not a function
      at /app/node_modules/discord.js/src/client/actions/ThreadMembersUpdate.js:17:95
      at Array.reduce (<anonymous>)
      at ThreadMembersUpdateAction.handle (/app/node_modules/discord.js/src/client/actions/ThreadMembersUpdate.js:16:27)
      at module.exports [as THREAD_MEMBERS_UPDATE] (/app/node_modules/discord.js/src/client/websocket/handlers/THREAD_MEMBERS_UPDATE.js:4:38)
      at WebSocketManager.handlePacket (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:355:31)
      at WebSocketManager.<anonymous> (/app/node_modules/discord.js/src/client/websocket/WebSocketManager.js:239:12)
      at WebSocketManager.emit (/app/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
      at WebSocketShard.<anonymous> (/app/node_modules/@discordjs/ws/dist/index.js:1190:51)
      at WebSocketShard.emit (/app/node_modules/@vladfrangu/async_event_emitter/dist/index.cjs:282:31)
      at WebSocketShard.onMessage (/app/node_modules/@discordjs/ws/dist/index.js:1005:14) {
    [stack]: [Getter/Setter: 'TypeError: thread.members._add is not a function\n' +
      '    at /app/node_modules/discord.js/src/client/actions/ThreadMembersUpdate.js:17:95\n' +
      '    at Array.reduce (<anonymous>)\n' +
      '    at ThreadMembersUpdateAction.'... 838 more characters],
    [message]: 'thread.members._add is not a function'
  }
}


Currently on v14.15.3, nodejs v21.7.1

I don't actually do anything with threads or thread members so it seems specificaly related to the message handler from a thread, possibly mentioning the bot?
Was this page helpful?