Merubokkusu / Discord-S.C.U.M

A Discord API Wrapper for Userbots/Selfbots written in Python.
MIT License
588 stars 167 forks source link

KeyError: 'user' #396

Open thienphunguyen21 opened 2 years ago

thienphunguyen21 commented 2 years ago

image

NeutronBlast commented 2 years ago

what's your code?

Manhhai2302 commented 2 years ago

Probally caused by a server has a channel/thread has a " or ' character in their name

Caroline-Oliver commented 2 years ago

Probally caused by a server has a channel/thread has a " or ' character in their name

I just tested this theory on an alt account and had no issues loading a basic script with a few servers, one of which containing ' and " characters in names of threads. However, I am also having a similar error as the OP.

image

It isn't exactly the same but there definitely is an issue. Weirder still is that this error just started today, when this script has been running successfully for over 48 hours straight. (Do note, my script only starts the gateway as needed so that I get discord notifications)

edit: I've found a temp fix. It seems the issue is with the file: "discum\gateway\start\parse.py" on lines 33 and 34 image

Hope this 4 AM solution helps you too.