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

Command function pointer #8

Open
KjetilIN opened this issue Dec 30, 2024 · 0 comments
Open

Command function pointer #8

KjetilIN opened this issue Dec 30, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@KjetilIN
Copy link
Owner

What?

Tried to make the "Command" struct have a function that is called every time the command is triggered. The params are the same: user and room. And the return is a Result. The problem is that it is async, so I don't know how to get the type correct.

You can assume that all command triggers have the a function that are all the same type.

@KjetilIN KjetilIN added the help wanted Extra attention is needed label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant