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

Events emitted by Crate #22

Open
marekmis opened this issue Jan 17, 2023 · 0 comments
Open

Events emitted by Crate #22

marekmis opened this issue Jan 17, 2023 · 0 comments

Comments

@marekmis
Copy link

It would be really good to have some events emitted by the Crate object which could be used by the app/website where it's installed. Example:

create.on('ready', (data) => {
   console.log('App is ready', data)
})

Personally I'd like to be able to see an event when the app is ready and is displaying first batch of messages. This way my app could display custom preloading animation and only show the widget when it's ready to use.

Discord API comes with a whole set of events so maybe that's a good starting point to move them over to crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant