Skip to content

Conversation

@ayubun
Copy link

@ayubun ayubun commented Nov 8, 2025

in the case where a guild may have no visible channels, or if the provided list of channels has one where the user cannot access, a given batch job will fail ungracefully, causing all of the remaining queue to be discarded:
Screenshot 2025-11-07 at 4 42 36 PM
image

i think a more elegant solution here is to return an empty search response, log a warning, and proceed as if the api returned no results (which defaults to exiting, or going to the next job if it is a batch)

testing

this works locally for me to skip jobs with guilds or channels that have insufficient read permissions c:


note: my personal contributions to and usage of this project do not represent discord. opinions are my own

@ayubun ayubun force-pushed the graceful-empty-guilds branch from fb2ceb8 to 9f59919 Compare November 8, 2025 01:28
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