I’m pretty sure Discord has blocked http requests from Roblox servers, which is probably why it still works in studio, but not in-game, so you’ll need a proxy.
You can try looking on the devforum for solutions, but I would recommend trying to make your own proxy:
This tutorial shows you how to make a Roblox proxy, but it shouldn’t be too hard to convert it into a Discord proxy.
Though, I wouldn’t recommend using Discord as a logging service, it’s against their TOS (I think). Theres a reason they blocked reqeusts from Roblox servers, and trying to bypass it is probably not a good idea.