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.
This pull request introduces a comprehensive set of updates focused on modernizing dependencies, improving environment and utility code, and adding robust automated tests. The most significant changes include major dependency upgrades (notably Bun, Node.js, and various libraries), enhancements to environment variable parsing, improvements to permission and presence utilities, and the addition of new test suites for key utility functions.
Dependency and Environment Upgrades:
package.jsonfor improved compatibility and performance. [1] [2] [3] [4] [5] [6]package.json(e.g., Prisma, Discord.js, TypeScript, Prettier, @sapphiredev packages, etc.) to their latest versions, ensuring access to new features and security patches.Environment and Utility Improvements:
src/lib/env/utils.tsfor better type safety and flexibility, including improved array parsing and stricter type signatures.src/lib/utility/config.tsto use a custom status and activity, reflecting new bot behavior.SendPolls,BypassSlowmode,PinMessages) and adjusting the order insrc/lib/utility/functions/formatter.ts. [1] [2] [3]Testing Enhancements:
tests/env.test.ts), permissions and moderation logic (tests/permissions.test.ts), time utilities (tests/time.test.ts), and general utility functions (tests/utility.test.ts), significantly improving test coverage and reliability of core utilities. [1] [2] [3] [4]These changes collectively modernize the codebase, improve reliability, and lay the groundwork for future development.