Properly map truths
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
All checks were successful
Build and Publish college-bot-v2 / build_and_publish (push) Successful in 14s
This commit is contained in:
parent
c47a38bfb9
commit
9c76fb7030
1 changed files with 2 additions and 1 deletions
|
@ -351,7 +351,8 @@ class QuoteQuota(commands.Cog):
|
||||||
auth=(username, password),
|
auth=(username, password),
|
||||||
)
|
)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
truths = response.json()
|
truths: list[dict] = response.json()
|
||||||
|
truths: list[TruthPayload] = list(map(lambda t: TruthPayload.model_validate(t), truths))
|
||||||
embed, file = await self._process_all_messages(channel, truths)
|
embed, file = await self._process_all_messages(channel, truths)
|
||||||
await ctx.edit(embed=embed, file=file)
|
await ctx.edit(embed=embed, file=file)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue