mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 09:05:59 -04:00
bug: A simple CommonJS Bot, but: revolt-api/node_modules/axios: 404 error when someone joins server: http Request of members/00000000000000000000000000 #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @BoQsc on GitHub (Apr 29, 2023).
What happened?
Plain simple bot gives an error of 404 when another bot joins the server.
OS: Linux/Debian
Setup: I'm using CommonJS, not TypeScript
Bot example:
Steps:
/members/00000000000000000000000000Full error message: new 19.txt

@Rexogamer commented on GitHub (Apr 29, 2023):
Are you using v6 or v7?
@BoQsc commented on GitHub (Apr 29, 2023):
@Rexogamer
I also encountered this issue a year or even a few years ago and was unable to resolve it, so I handled it by ignoring it in production bot. Now it's again a clean environment, but this 404 when someone joins the server still appears.
@Xynnix commented on GitHub (Oct 5, 2023):
I would say if you're usingserverMemberJoinevent the way i fixed this is just simply checking if there's auser.id/member.id, or if its a message causing this issue, you could trymessage.systemcheck (i think) as well asmessage.author.id; this could be a temp fix.if you aren't using anserverMemberJoinevent, i would say try adding it with this method i stated?this worked for me on7.0.0-beta.9, but i am unsure if that's a me problem though then again.scratch that, this doesn't help.