module/quest-roll.js
/**
     * Render a DropRoll instance to HTML
     * @param {object} [chatOptions]      An object configuring the behavior of the resulting chat message.
     * @return {Promise<string>}          The rendered HTML template as a string
     */
Render a DropRoll instance to HTML
@param {object} [chatOptions]      An object configuring the behavior of the resulting chat message.
@return {Promise}          The rendered HTML template as a string
Render a DropRoll instance to HTML @param { object } [ chatOptions ] An object configuring the behavior of the resulting chat message . @return { Promise } The rendered HTML template as a string
async render(chatOptions = {}) {
        chatOptions = foundry.utils.mergeObject(
            {
                user: game.user.id,
                flavor: null,
                template: this.constructor.CHAT_TEMPLATE,
                blind: false
            },
            chatOptions
        );
        if (!this._evaluated) this.evaluate();
        let chatData = await questChatData(this, chatOptions);
        return renderTemplate(chatOptions.template, chatData);
    }
async render ( chatOptions = { } ) { chatOptions = foundry . utils . mergeObject ( { user : game . user . id , flavor : null , template : this . constructor . CHAT_TEMPLATE , blind : false } , chatOptions ) ; if ( ! this . _evaluated ) this . evaluate ( ) ; let chatData = await questChatData ( this , chatOptions ) ; return renderTemplate ( chatOptions . template , chatData ) ; }
Render a DropRoll instance to HTML
 @param {object} [chatOptions]      An object configuring the behavior of the resulting chat message.
Render a DropRoll instance to HTML @param { object } [ chatOptions ] An object configuring the behavior of the resulting chat message .
// Execute the roll, if needed // Define chat data // Render the roll display template