Skip to content

Quart blueprints #56

Answered by breqdev
ccall48 asked this question in Q&A
Nov 4, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Using Quart vs Flask shouldn't impact the blueprint registration part of things--pretty much the only difference internally between how this library handles Flask and Quart is inside the call to DiscordInteractions.set_route, so declaring blueprints in Flask vs Quart should be exactly the same. When I get a chance, I'll write up an example to verify this.

From the error you posted, it seems like you're calling discord.register_blueprint() with a function instead of a DiscordInteractionsBlueprint object. Regardless of if you're using Flask or Quart, you need to define your blueprint as a DiscordInteractionsBlueprint, not a Flask.Blueprint or a Quart.Blueprint.

Similarly to Flask, you can …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ccall48
Comment options

Answer selected by breqdev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants