You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I had the same problem with quart_discord.
All you need to do is move
discord=DiscordOAuth2Session(app)
to your main file, and then import discord from main in your blueprint file.
Also to prevent circular imports remember to wrap import of blueprint and app.run() in if statement, something like that
Hey, thanks for your reply. I fixed the issue in the end by just using oauthlib and doing it from scratch just because for my case, I can't have discord imported in the main file.
Hey, I need to use Flask-Discord in a blueprint but I am not sure if that is possible.
I get the error
AttributeError: 'Flask' object has no attribute 'discord'
and I think its because it uses current_app instead of the blueprint itself.Thanks
The text was updated successfully, but these errors were encountered: