pydantic docstrings
This commit is contained in:
@ -24,6 +24,7 @@ class RandMsg(FastAPI):
|
||||
async def randmsg_handler(self, data: RandMsgRequest) -> JSONResponse:
|
||||
"""
|
||||
Get a randomly generated message
|
||||
- **short**: Optional, if True, will limit length of returned random messages to <=126 characters (Discord restriction related)
|
||||
"""
|
||||
random.seed()
|
||||
short: bool = data.short if data.short else False
|
||||
|
Reference in New Issue
Block a user