scripts/item/item-sheet.js
/**
   * Override header buttons to add custom ones.
   */
Override header buttons to add custom ones.
Override header buttons to add custom ones .
_getHeaderButtons()
  {
    let buttons = super._getHeaderButtons();
    if (game.user.isGM && this.options.editable)
    {
      buttons.push(
      {
        class: "post",
        icon: "fas fa-comment",
        onclick: ev => this.item.postItem()
      })
    }
    return buttons
  }
_getHeaderButtons ( ) { let buttons = super . _getHeaderButtons ( ) ; if ( game . user . isGM && this . options . editable ) { buttons . push ( { class : "post" , icon : "fas fa-comment" , onclick : ev => this . item . postItem ( ) } ) } return buttons }
Override header buttons to add custom ones.
Override header buttons to add custom ones .
// Add "Post to chat" button