async function _choiceHandler() {
    var message = game.collections.get("ChatMessage").get($(event.target).closest(".chat-message").data("messageId"));

    var session = serde.SessionData.fromFlag(message);
    session.visited = true;
    session.toFlag(message);

    Hooks.callAll(
        "foundry-ink.makeChoice",
        $(event.target).data('index'),
        session);
}
/**
 * Handles choices made by clicking on a chat message
 */
Handles choices made by clicking on a chat message
Handles choices made by clicking on a chat message
async function _choiceHandler() {
    var message = game.collections.get("ChatMessage").get($(event.target).closest(".chat-message").data("messageId"));
    var session = serde.SessionData.fromFlag(message);
    session.visited = true;
    session.toFlag(message);
    Hooks.callAll(
        "foundry-ink.makeChoice",
        $(event.target).data('index'),
        session);
}
async function _choiceHandler ( ) { var message = game . collections . get ( "ChatMessage" ) . get ( $ ( event . target ) . closest ( ".chat-message" ) . data ( "messageId" ) ) ; var session = serde . SessionData . fromFlag ( message ) ; session . visited = true ; session . toFlag ( message ) ; Hooks . callAll ( "foundry-ink.makeChoice" , $ ( event . target ) . data ( 'index' ) , session ) ; }
Handles choices made by clicking on a chat message
Handles choices made by clicking on a chat message