A decorator to store and link a callback to an event.

def run_on(*, event: str):
        """A decorator to store and link a callback to an event."""

        def decorator(callback):
            @functools.wraps(callback)
            def decorator_wrapper():
                RTMClient.on(event=event, callback=callback)

            return decorator_wrapper()

        return decorator