Skip to content
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

feat: make the Application Command Registries status listeners optional #627

Merged

Conversation

favna
Copy link
Member

@favna favna commented Apr 12, 2023

ref: on ready message - forum post


This PR addresses a few things:

  1. It makes the 2 logs for registering application commands optional by setting the new client option loadApplicationCommandRegistriesStatusListeners
  2. Events.ApplicationCommandRegistriesRegistered can now accept an (optional) timeTaken parameter
  3. The message ApplicationCommandRegistries: Initializing... has been moved from CoreReady to handleRegistryAPICalls and is emitted to the new event Events.ApplicationCommandRegistriesInitialising
  4. A core event for Events.ApplicationCommandRegistriesRegistered was added that logs the ApplicationCommandRegistries: Took ${diff.toLocaleString()}ms to initialize.) message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@favna
Copy link
Member Author

favna commented Apr 12, 2023

@sapphiredev pack

@sapphiredev
Copy link

sapphiredev bot commented Apr 12, 2023

Heya @favna, I've started to run the deployment workflow on this PR at 82f5588. You can monitor the build here!

@sapphiredev
Copy link

sapphiredev bot commented Apr 12, 2023

Hey @favna, I've released this to NPM. You can install it for testing like so:

npm install @sapphire/framework@pr-627

Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
@favna favna merged commit 0e6d59a into main Apr 12, 2023
@favna favna deleted the feat/make-application-command-registries-status-listeners-optional branch April 12, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants