Skip to content

Commit

Permalink
🐛 Fixed lock/archive effect don't restart the triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed Aug 26, 2022
1 parent 921dc62 commit f00de34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void runEffect(@NotNull Event e, @NotNull Bot bot) {
final ThreadChannel thread = parseSingle(exprThread, e);
if (thread == null) return;
final ThreadChannelManager manager = thread.getManager();
manager.setArchived(archived).queue();
manager.setArchived(archived).queue(this::restart, null);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void runEffect(@NotNull Event e, @NotNull Bot bot) {
final ThreadChannel thread = parseSingle(exprThread, e);
if (thread == null) return;
final ThreadChannelManager manager = thread.getManager();
manager.setLocked(lock).queue();
manager.setLocked(lock).queue(this::restart, null);
}

@Override
Expand Down

0 comments on commit f00de34

Please # to comment.