Skip to content

Fix custom help erroring#298

Open
ericthelemur wants to merge 1 commit intoUWCS:masterfrom
ericthelemur:master
Open

Fix custom help erroring#298
ericthelemur wants to merge 1 commit intoUWCS:masterfrom
ericthelemur:master

Conversation

@ericthelemur
Copy link
Copy Markdown
Contributor

@ericthelemur ericthelemur commented Mar 23, 2026

Fixes #250

},
}
)
) for i in range(0, len(cog_fields), 25)]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I can't help but feel that writing this block this big isn't ideal, I'd maybe seperate the block that generates the embeds lists and pass it to the send message function separately.

This would make this code slightly more readable.

@raven0034 raven0034 self-requested a review April 2, 2026 12:42
Copy link
Copy Markdown
Member

@raven0034 raven0034 left a comment

Choose a reason for hiding this comment

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

Tested locally; seems to work fine. However, I do agree with Skiros' point on readability - also potentially helpful to give brief ctx about the source of the 25 fields limitation as well, to help maintainability in future. Otherwise happy to merge.

Potential future extension of this is a pagination-based approach rather than multiple embeds.

@ericthelemur
Copy link
Copy Markdown
Contributor Author

Fair points, I was being a bit lazy with the code. Will add this evening. I agree long term solution is some form of pagination though

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.

!help erroring

3 participants