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

Error running the program #161

Open EvilNick3019 opened 4 years ago

EvilNick3019 commented 4 years ago

Whenever I try and launch the program I get an error code saying this: "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" Any idea on how to fix this?

Edit: I'm using a token to login to the account

TUSK3N commented 4 years ago

Same for me I can't run the program anymore, I'm on windows btw.

Edit: Apparently I switched ip adress and discord will ask you to verify your new ip by sending an email so that's why I coudn't make it start but the error message still shows up btw.

EvilNick3019 commented 4 years ago

I'm on windows too, I've tried a lot of things but I just can't seem to get it to work

DeadIntermediate commented 4 years ago

I am getting this error as well, and I am just using E-Mail and Password

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 "Copy ID." That fixed this issue for me.