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 #5

Open
AtomicGamer9523 opened this issue Mar 20, 2022 · 1 comment
Open

Events #5

AtomicGamer9523 opened this issue Mar 20, 2022 · 1 comment

Comments

@AtomicGamer9523
Copy link

Could you please add events.
You have said they are there in README.md:

rpc.events.listen((event) {
    if (event is DiscordReady) {
        event.user;
    }
    if (event is DiscordErrored) {
        event.errorCode;
        event.message;
    }
    if (event is DiscordJoinGame) {
        event.joinSecret;
    }
    // Other events.
});

But it says nothing about it in the API Docs

@alexmercerind
Copy link
Owner

alexmercerind commented Mar 20, 2022

Not implemented.
It will require additional shared library because current dart:ffi doesn't support callback from other foreign (C/C++) threads.

I can't give any expected date for the feature.

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

2 participants