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 daily bonus reminder notification:
- User may choose any time in the day to receive the notification.
- Added PATCH
/member/bonus/notification/settings
to update notification settings. - Added GET
/member/bonus/notification/settings
to fetch notification settings.
-
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