Skip to content

feat(discord): post reopen notice when keeping threads alive - #103

Merged
BK1031 merged 2 commits into
mainfrom
bk1031/thread-reopen-notice
Aug 8, 2026
Merged

feat(discord): post reopen notice when keeping threads alive#103
BK1031 merged 2 commits into
mainfrom
bk1031/thread-reopen-notice

Conversation

@BK1031

@BK1031 BK1031 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor
  • Post a message in the thread after Sentinel auto-unarchives it, explaining the reopen and that locking a thread before closing opts it out of keepalive

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 95c303dac7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread discord/service/thread_keepalive.go Outdated
return
}
logger.SugarLogger.Infof("thread keepalive: unarchived thread %s (%s)", thread.ID, thread.Name)
if _, err := Discord.ChannelMessageSend(thread.ID, threadReopenNotice); err != nil {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Require permission to post the reopen notice

When the bot has only the documented MANAGE_THREADS permission, unarchiving succeeds but this request can fail with 403 Missing Permissions: creating a message in a thread requires the separate SEND_MESSAGES_IN_THREADS permission, which MANAGE_THREADS does not imply. Consequently, deployments configured according to this function's stated requirement never deliver the newly added notice; ensure the bot is granted the additional permission and document it here.

Useful? React with 👍 / 👎.

@BK1031
BK1031 merged commit 0998440 into main Aug 8, 2026
19 checks passed
@BK1031
BK1031 deleted the bk1031/thread-reopen-notice branch August 8, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant