You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhanced commands.ts with improved import statements
The commands.ts file has been updated to import specific modules from discord.js which increases the efficiency and speed of the code.
Refined handleMessage function
The handleMessage function in commands.ts has now been modified to utilize the extractSearchKey helper function rather than splitting up the message content. This change simplifies the code and makes it easier to maintain in the future.
Improved readability of generateReactDocsErrorEmbeds function
The generateReactDocsErrorEmbeds function now uses multi-line object literals. This makes the code easier to read and comprehend.
Added unit tests for helper functions
A new file react-docs.test.ts has been added which contains unit tests for the extractSearchKey and getReactDocsSearchKey functions. This ensures that the functions behave as expected and improves the overall reliability of the system.
Improved react-docs.ts with new function and constant
The EXTRACT_SEARCH_KEY_REGEX constant and the extractSearchKey function have been added to react-docs.ts. This helps the system in more effectively extracting the search key from a message.
Code formatting and commenting for react-docs.ts
To improve code readability and maintainability, react-docs.ts has been formatted and detailed comments have been added where necessary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #354