-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add header
, hyperlink
and subtext
utilities (#6102)
#19
Add header
, hyperlink
and subtext
utilities (#6102)
#19
Conversation
Reviewer's Guide by SourceryThis pull request adds three new utility functions to the File-Level Changes
Tips
|
9a28195
into
JARVIS-discordbot:Cog-Creators-V3/develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @BenCos17 - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
---------- | ||
text : str | ||
The text for the header. | ||
url : Literal['small', 'medium', 'large'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Incorrect parameter name in docstring
The parameter name in the docstring should be 'size' instead of 'url' to match the function signature.
* [Trivia] Correct Stephen to Steven (Cog-Creators#6434) Co-authored-by: Artemis6969 <[email protected]> * Generate default LL server config and attach it to GH release (Cog-Creators#6430) * [Audio] Update Lavalink.jar and yt source build numbers (Cog-Creators#6435) Co-authored-by: Jakub Kuczys <[email protected]> * [Audio] Fix trying to send notify message with no channel object (Cog-Creators#6429) * Bump dependencies (Cog-Creators#6436) * Red 3.5.13 - Changelog (Cog-Creators#6437) * Automated Crowdin downstream (Cog-Creators#6439) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Version bump to 3.5.13 (Cog-Creators#6438) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fix publish release workflow * Add missing perm to Publish Release workflow * Change Red 3.5.13 release date * Version bump to 3.5.14.dev1 * [Trivia] Correct typos in World Cup trivia list for Golden Glove questions (Cog-Creators#6441) * Split out non-Python assets in Publish Release workflow (Cog-Creators#6440) * Add `header`, `hyperlink` and `subtext` utilities (Cog-Creators#6102) (#19) Co-authored-by: Kreusada <[email protected]> Co-authored-by: Kowlin <[email protected]> --------- Co-authored-by: Guyonsteroids <[email protected]> Co-authored-by: Artemis6969 <[email protected]> Co-authored-by: Jakub Kuczys <[email protected]> Co-authored-by: aikaterna <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Mellow <[email protected]> Co-authored-by: Kreusada <[email protected]> Co-authored-by: Kowlin <[email protected]>
Description of the changes
Have the changes in this PR been tested?
Yes
Summary by Sourcery
Add new utility functions
header
,hyperlink
, andsubtext
to enhance text formatting capabilities in the chat formatting module.New Features:
hyperlink
utility function to create hyperlink markdown with specified text and URL.header
utility function to format text as a header with specified sizes: small, medium, or large.subtext
utility function to format text as subtext.