Improve handling of listeners/channel_link.py in regards to missing txt channels. #304

Merged
Sirdog merged 1 commit from enhance/cl-listener-handle-missing-txt-channel into dev 2026-05-03 02:26:16 -04:00
Owner

My best guess, with consultation with Claude Opus 4.6, is that the error mentioned in #289 was pointing to #{txt_channel.name} not existing. While it points to {after.channel.name}, that does not make rational since, as a guard clause nested further up would not cause that code to be reached if it didn't exist.

This PR introduces handling so that EnduraBot will make an attempt to fetch the channel's information via the API if the cache does not have it. If that fails, EnduraBot will fail gracefully and provide information in the logs.

God speed, future me.

Closes #289

My best guess, with consultation with Claude Opus 4.6, is that the error mentioned in #289 was pointing to `#{txt_channel.name}` not existing. While it points to `{after.channel.name}`, that does not make rational since, as a guard clause nested further up would not cause that code to be reached if it didn't exist. This PR introduces handling so that EnduraBot will make an attempt to fetch the channel's information via the API if the cache does not have it. If that fails, EnduraBot will fail gracefully and provide information in the logs. God speed, future me. Closes #289
Sirdog self-assigned this 2026-05-03 02:25:34 -04:00
Sirdog deleted branch enhance/cl-listener-handle-missing-txt-channel 2026-05-03 02:26:16 -04:00
Sign in to join this conversation.
No description provided.