the-draupnir-project / Draupnir

A Matrix moderation bot
https://the-draupnir-project.github.io/draupnir-documentation/
70 stars 14 forks source link

Investigate why unban command is failing completely #401

Closed Gnuxie closed 2 months ago

Gnuxie commented 2 months ago

https://matrix.to/#/%23draupnir%3Amatrix.org/%24shOUT6-AGfZyqFH8f7705m87vQoVd78ENqXxjhaz1eg?via=matrix.org&via=envs.net&via=ubuntu.com

Sun, 05 May 2024 11:14:43 GMT [ERROR] [ActionException] ActionException Unknown 1f719228-e80f-4c1c-8c2a-0ab005a27eb7 Unknown Unexpected Error TypeError: roomRef.toRoomIDOrAlias is not a function
    at resolveRoomReferenceSafe (/home/guillaume/local/opt/Draupnir/node_modules/matrix-protection-suite-for-matrix-bot-sdk/dist/SafeMatrixClient.js:13:45)
    at /home/guillaume/local/opt/Draupnir/lib/commands/Unban.js:76:116
    at Object.unban (/home/guillaume/local/opt/Draupnir/lib/commands/Unban.js:81:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async InterfaceCommand.parseThenInvoke (/home/guillaume/local/opt/Draupnir/lib/commands/interface-manager/InterfaceCommand.js:185:16)
    at async MatrixInterfaceAdaptor.invoke (/home/guillaume/local/opt/Draupnir/lib/commands/interface-manager/MatrixInterfaceAdaptor.js:56:32)
    at async handleCommand (/home/guillaume/local/opt/Draupnir/lib/commands/CommandHandler.js:74:20)
    at async Task (/home/guillaume/local/opt/Draupnir/node_modules/matrix-protection-suite/dist/Interface/Task.js:40:24)