Skip to content

Commit

Permalink
feat: add moderator notes to resolved suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Jun 13, 2024
1 parent 45ef6f5 commit 517e1a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions suggestions/objects/suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ async def _as_resolved_embed(
resolved_by_text = (
"Anonymous" if self.anonymous_resolution else f"<@{self.resolved_by}>"
)

embed = Embed(
description=f"{results}\n\n**Suggestion**\n{self.suggestion}\n\n"
f"**Submitter**\n{submitter}\n\n"
Expand Down Expand Up @@ -496,6 +497,11 @@ async def _as_resolved_embed(
if self.image_url:
embed.set_image(self.image_url)

if self.note:
note_desc = f"**Moderator note**\n{self.note}"
# TODO Resolve BT-44 and add moderator back
embed.description += note_desc

return embed

async def mark_approved_by(
Expand Down

0 comments on commit 517e1a1

Please sign in to comment.