docs: function (privmsg, adminOnlyCallback) {
              // If the "command" property is set, it's a command, and not a privmsg.
              // The prototype of a command is the privmsg though.
              const memoizeOver = privmsg.command ? Object.getPrototypeOf(privmsg) : privmsg;
              const allowAll = privmsg[allowAllSymbol];
  
              return isAdmin(privmsg.hostmask, {memoizeOver, allowAll})
              .then(function (isAdmin) {
                  if (isAdmin) {
                      return adminOnlyCallback();
                  } else {
                      client.note("PluginAdmin", format("'%s' tried to execute admin-only functionality", privmsg.nickname));
                      return deniedResponse;
                  }
              });
          }