fastapi-discord icon indicating copy to clipboard operation
fastapi-discord copied to clipboard

How To Create A Session?

Open xFGhoul opened this issue 4 years ago • 6 comments

Issue title says enough

xFGhoul avatar Nov 07 '21 16:11 xFGhoul

What kind of session do you mean?

Tert0 avatar Dec 21 '21 19:12 Tert0

I do a request.session I add the token as session cookie. When I need to make a call, I simply add the token as header

MiroslavRosenov avatar Dec 21 '21 20:12 MiroslavRosenov

I do a request.session I add the token as session cookie. When I need to make a call, I simply add the token as header

Basically What This Does, Like FlaskDiscord create_session method

xFGhoul avatar Dec 22 '21 17:12 xFGhoul

I've never seen Flask-Discord, but this is what works for me. There are no docs and not good example for this library. I looked into the code and I saw that it uses headers for some odd reason...

MiroslavRosenov avatar Dec 22 '21 19:12 MiroslavRosenov

I've never seen Flask-Discord, but this is what works for me. There are no docs and not good example for this library. I looked into the code and I saw that it uses headers for some odd reason...

Can you provide some example code?

xFGhoul avatar Dec 22 '21 19:12 xFGhoul

image

MiroslavRosenov avatar Dec 23 '21 21:12 MiroslavRosenov