Reuse ChannelHelper for channel lookups #593
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type
documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
won't fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
RabbitLabs/vylbot-app#593
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from #534 comment / PR #592.
ChannelHelper.ResolveSendablewas extracted forRssTimer. Reuse it (or extend the helper) in the other places that resolve a channel then check sendability.Story Points:
Acceptance Criteria
GIVEN channel resolution logic exists in timers, commands, and events
WHEN those call sites need a sendable channel
THEN they use
ChannelHelper(or an extended helper API) instead of duplicated cache/find/fetch + cast/isSendablelogicGIVEN name-based lookups (moderation / log / verification channels)
WHEN migrating them onto the helper
THEN either add a name-based resolve helper or migrate those configs to channel IDs first
Subtasks
src/timers/AutoKick.tsnotice channel lookup (×2) ontoChannelHelper.ResolveSendable(id + sendable — closest match to current helper)src/commands/ban.tssrc/commands/kick.tssrc/commands/warn.tssrc/commands/timeout.tsGuildMemberAddGuildMemberRemoveNicknameChangedMessageDeleteMessageUpdateVerificationCheckNotes
TextChanneland would need a name-based helper or ID migration before they matchResolveSendable.