Skip to content

Commit

Permalink
ID showing in validate
Browse files Browse the repository at this point in the history
  • Loading branch information
Exenifix committed May 1, 2022
1 parent b3d6dc8 commit cd12513
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ async def validate(self, inter: disnake.ApplicationCommandInteraction):
await inter.send(
embed=disnake.Embed(
title="Is this message a spam?", description=f"{rec}"
).add_field("AI Prediction", "YES" if is_spam(rec) else "NO"),
)
.add_field(
"AI Prediction", "YES" if is_spam(rec) else "NO", inline=False
)
.add_field("ID", str(id), inline=False),
view=view,
ephemeral=True,
)
Expand Down

0 comments on commit cd12513

Please sign in to comment.