Skip to content

Commit

Permalink
action_items: make remaining error/success messages ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom committed Nov 18, 2024
1 parent 6bb0a70 commit 9507f3a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/extensions/action_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ async def get_action_items(
)

if not action_items_section:
await ctx.respond("❌ No `Action Items` section found.")
await ctx.respond(
"❌ No `Action Items` section found.",
flags=hikari.MessageFlag.EPHEMERAL,
)
return

# Get the matched content (excluding the "Action Items" heading itself)
Expand Down Expand Up @@ -98,7 +101,10 @@ async def get_action_items(
)

# respond with success if it executes successfully
await ctx.respond("✅ Action Items sent successfully!")
await ctx.respond(
"✅ Action Items sent successfully!",
flags=hikari.MessageFlag.EPHEMERAL,
)
return


Expand Down

0 comments on commit 9507f3a

Please sign in to comment.