Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot interactions fail #193

Open
ogazit opened this issue Apr 14, 2023 · 6 comments
Open

Bot interactions fail #193

ogazit opened this issue Apr 14, 2023 · 6 comments

Comments

@ogazit
Copy link

ogazit commented Apr 14, 2023

We first noticed this with hangman, where when we click on a letter we always just get the message that "this interaction failed". It's also true on card searches, and has been for a few weeks now.

@multimeric
Copy link
Collaborator

@bra1n could you have a look at the logs please? Maybe give it a restart?

@bra1n
Copy link
Owner

bra1n commented Apr 14, 2023

@bra1n could you have a look at the logs please? Maybe give it a restart?

There seems to be only one error being thrown repeatedly:

TypeError: channel.isTextBased is not a function
    at InteractionCreateAction.handle (/home/brain/judgebot/node_modules/discord.js/src/client/actions/InteractionCreate.js:46:33)
    at Object.module.exports [as INTERACTION_CREATE] (/home/brain/judgebot/node_modules/discord.js/src/client/websocket/handlers/INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (/home/brain/judgebot/node_modules/discord.js/src/client/websocket/WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (/home/brain/judgebot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:481:22)
    at WebSocketShard.onMessage (/home/brain/judgebot/node_modules/discord.js/src/client/websocket/WebSocketShard.js:321:10)
    at WebSocket.onMessage (/home/brain/judgebot/node_modules/ws/lib/event-target.js:199:18)
    at WebSocket.emit (node:events:513:28)
    at Receiver.receiverOnMessage (/home/brain/judgebot/node_modules/ws/lib/websocket.js:1178:20)
    at Receiver.emit (node:events:513:28)
    at Receiver.dataMessage (/home/brain/judgebot/node_modules/ws/lib/receiver.js:528:14)

It also seems to crash the bot whenever it happens, meaning there were a lot of restarts already recently. 😉

@multimeric
Copy link
Collaborator

It must be that discord broke the API in some way. Seems like I can just bump discord.js: discordjs/discord.js#9295.

@icy-
Copy link

icy- commented May 9, 2023

hi, is there any update on this one? Game starts fine (easy/medium etc) but any button click results in "This interaction failed" and the game will eventually time out with its default 3minutes
image

@Holydemonics
Copy link

Hi, I know this is old but was a solution to this found or is there something on my server breaking the hangman interaction?

@multimeric
Copy link
Collaborator

I think it's just a bug I haven't got around to fixing yet. But I'd welcome a PR from someone else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants