Seklfreak / discord-image-downloader-go

A simple tool which downloads pictures posted in discord channels of your choice to a local folder.
MIT License
349 stars 90 forks source link

DG0] wsapi.go:551:onEvent() error unmarshalling READY event, json: cannot unmarshal number into Go struct field ReadState.read_state.last_message_id of type string #167

Open Ridolf opened 4 years ago

Ridolf commented 4 years ago

im having this error "DG0] wsapi.go:551:onEvent() error unmarshalling READY event, json: cannot unmarshal number into Go struct field ReadState.read_state.last_message_id of type string"

Teemash commented 4 years ago

Did you get it fixed? My program was working, it suddenly stopped working.

DenimGod commented 4 years ago

I found the solution! The chat IDs for each account are different, so the interactive channels ID that you use in the config file to set up an interactive channel has to be the chat ID for your CLIENT account messaging your MAIN account, not the other way around. You find this by enabling developer options on your CLIENT account (the one that will be your interactive account), then right clicking on the chat of your CLIENT account messaging to your MAIN account and clicking "show chat ID." That fixed this issue for me.