Function create

  • Create the interaction helpers by passing in a droff client.

    import * as Interactions from "droff-interactions";

    const interactions = Interactions.create(client);

    const ping$ = interactions.global({
    name: "ping",
    description: "A simple ping command",
    }).pipe(RxO.flatMap(...));

    Rx.merge(interactions.sync$, ping$).subscribe();

    Parameters

    • client: Client

    Returns InteractionsHelper

Generated using TypeDoc