get cookie inside $server rpc call

Hi, how can I get an http cookie inside $server rpc context? This is possible using tRPC, and I'm hoping possible w/ $server because it's working out well for me, and I'd hate pull in tRPC just to get a cookie. (edit: or make rest API call, which is prob what will do on second thought if not supported, but bummer to lose the easy type safety)
3 Replies
OrJDev
OrJDev2y ago
server$( () => { const headers = server$.request.headers } ); headers.get("cookie");
hotshoe
hotshoeOP2y ago
worked like a charm. thank you so much!!!
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server