v2.9.5
-
Improved banner generator:
- Ability to choose whether to show division or rank as front row in the right side.
- Accept custom background image defined by
banner_background_url
in config. - Accept custom background opacity defined by
banner_background_opacity
in config.
-
Added support to modifying request object through middleware
- Modified standard return value of
request
middleware: Originally only an optionalresponse
is returned. Currently eitherNone
or a tuple of(request, response)
has to be returned. Ifresponse
is notNone
, then theresponse
will be returned directly. Otherwise, the request will be processed normally.
- Modified standard return value of
-
Added
discord_request
middleware to manipulate data sent to Discord- The
method
,url
anddata
in requests will be passed todiscord_message
middleware, and the middleware must return a validdata
which will be sent to Discord. - If there are multiple middlewares present, the
data
will be updated by earlier ones in the list, and the updated data will be passed to later ones. - The middleware function must be synchronous and asynchronous functions will be not executed.
- The