V4NSH4J / discord-mass-DM-GO

The most powerful Discord selfbot written in GO allowing users to automate their campaigns & send low-cost mass messages to Discord users!
https://t.me/tosviolators
GNU Affero General Public License v3.0
2.17k stars 633 forks source link

Error while Unmarshalling incoming websocket message: json: cannot unmarshal array into Go struct field #671

Closed tamtamb closed 2 years ago

tamtamb commented 2 years ago

Getting this error on DM on react:

Error while Unmarshalling incoming websocket message: json: cannot unmarshal array into Go struct field Data.d.threads of type bool {"t":"THREAD_LIST_SYNC","s":3,"op":0,"d":{"threads":[],"most_recent_messages":[],"guild_id":"93000000000000"}}

Error while Unmarshalling incoming websocket message: json: cannot unmarshal array into Go struct field Event.d of type instance.Data {"t":"SESSIONS_REPLACE","s":4,"op":0,"d":[{"status":"online","session_id":"c807310000000000000000","client_info":{"version":0,"os":"windows","client":"web"},"activities":[]}]}

DMGO error

mbmaali commented 2 years ago

getting a similar error with auto react.

V4NSH4J commented 2 years ago

You may ignore this error, the way we access values from JSON in DMDGO is by making it a pre-determined type and then unmarshalling the JSON response to it. The pre-determined type was defined in order to use all the required information from Discord. So when discord sends something that DMDGO does not need, and hence the pre-determined type hasn't accommodated it, it gives a unmarshalling error.

This particular error can be completely ignored and does not affect any performance. The only reason it logs in the first place is so that if there's a problem with the required system, it can be debugged.

artemysss11 commented 2 years ago

You may ignore this error, the way we access values from JSON in DMDGO is by making it a pre-determined type and then unmarshalling the JSON response to it. The pre-determined type was defined in order to use all the required information from Discord. So when discord sends something that DMDGO does not need, and hence the pre-determined type hasn't accommodated it, it gives a unmarshalling error.

This particular error can be completely ignored and does not affect any performance. The only reason it logs in the first place is so that if there's a problem with the required system, it can be debugged.

Can you please help me set it up, my accounts dont sent even 1 message, 90% gets banned