There’s your problem. Discord is caching the link/image/preview.
Discord will never bother to go and check if the image actually changed, if it already has it, as it copies a instance of the image to it’s server(s) to avoid IP farming. Among other things
Best solution is to do
for(var streamobject of body.data){
thumbnail_url = streamobject["thumbnail_url"] . '?rnd=UNIXTIMESTAMP';
...
}
Then each time you post to Discord it’s always a new Link.