Skip to content

Conversation

@danthe1st
Copy link
Member

Currently, automatically created codeblocks in help channels (introduced in #425) do not use java syntax highlighting.

This PR automatically adds java syntax highlighting to all codeblocks that are created automatically when a message in a help channel looks like code.

Suggestion: https://canary.discord.com/channels/648956210850299986/1193480663064662046

@danthe1st danthe1st requested a review from a team as a code owner January 7, 2024 15:37
@danthe1st danthe1st added the feature: help-system For issues pertaining to the bot's help channel management functionality. label Jan 7, 2024
Copy link
Contributor

@Pleezon Pleezon left a comment

Choose a reason for hiding this comment

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

lgtm - Although I believe we should probably create a global variable (or use JDA) for discord's character limit since it might vary.

@danthe1st
Copy link
Member Author

lgtm - Although I believe we should probably create a global variable (or use JDA) for discord's character limit since it might vary.

I used Message.MAX_CONTENT_LENGTH for this now.

@MoonTM-GIT MoonTM-GIT merged commit 164957b into Java-Discord:main Jan 26, 2024
@danthe1st danthe1st deleted the java-autoformat branch January 26, 2024 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: help-system For issues pertaining to the bot's help channel management functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants