Skip to content

Commit

Permalink
[ReTrigger] Always suppress if enabled not only if the message contai…
Browse files Browse the repository at this point in the history
…ns embeds.
  • Loading branch information
TrustyJAID committed Mar 8, 2024
1 parent 0f040de commit 30d335c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retrigger/triggerhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ async def perform_trigger(
reason = _("Trigger response: {trigger}").format(trigger=trigger.name)
own_permissions = channel.permissions_for(guild.me)
# is_thread_message = getattr(message, "is_thread", False)
if trigger.suppress and message.embeds and own_permissions.manage_messages:
if trigger.suppress and own_permissions.manage_messages:
try:
await message.edit(suppress=True)
except Exception:
Expand Down

0 comments on commit 30d335c

Please sign in to comment.